2017-10-18 15:03:02 -07:00
|
|
|
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
|
2020-03-05 10:49:19 -08:00
|
|
|
description : SyntaxError: Identifier 'a' has already been declared
|
2017-10-18 15:03:02 -07:00
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
result : {
|
|
|
|
className : SyntaxError
|
2020-03-05 10:49:19 -08:00
|
|
|
description : SyntaxError: Identifier 'a' has already been declared
|
2017-10-18 15:03:02 -07:00
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Evaluating 'a'
|
|
|
|
{
|
|
|
|
description : 42
|
|
|
|
type : number
|
|
|
|
value : 42
|
|
|
|
}
|