896afddedc
- rewritten test using new harness, - removed command line API part since we check it separatelu in inspector/runtime/command-line-api.js R=jgruber@chromium.org Bug: none Change-Id: Ia12cab10a8e299bb17688c9c5f36e7f712aa70ee Reviewed-on: https://chromium-review.googlesource.com/595032 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#47048}
42 lines
924 B
Plaintext
42 lines
924 B
Plaintext
Tests scoped variable in Runtime.evaluate
|
|
Evaluating 'let a = 42;'
|
|
{
|
|
type : undefined
|
|
}
|
|
Evaluating 'a'
|
|
{
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
Evaluating 'let a = 239;'
|
|
{
|
|
exceptionDetails : {
|
|
columnNumber : 0
|
|
exception : {
|
|
className : SyntaxError
|
|
description : SyntaxError: Identifier 'a' has already been declared at <anonymous>:1:1
|
|
objectId : <objectId>
|
|
subtype : error
|
|
type : object
|
|
}
|
|
exceptionId : <exceptionId>
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
text : Uncaught
|
|
}
|
|
result : {
|
|
className : SyntaxError
|
|
description : SyntaxError: Identifier 'a' has already been declared at <anonymous>:1:1
|
|
objectId : <objectId>
|
|
subtype : error
|
|
type : object
|
|
}
|
|
}
|
|
Evaluating 'a'
|
|
{
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|