2017-08-01 15:08:35 +00:00
|
|
|
Tests scoped variable in Runtime.evaluate
|
|
|
|
Evaluating 'let a = 42;'
|
|
|
|
{
|
|
|
|
type : undefined
|
|
|
|
}
|
|
|
|
Evaluating 'a'
|
|
|
|
{
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 42
|
2017-08-01 15:08:35 +00:00
|
|
|
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'
|
|
|
|
{
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 42
|
2017-08-01 15:08:35 +00:00
|
|
|
type : number
|
|
|
|
value : 42
|
|
|
|
}
|