2019-11-06 12:26:33 +00:00
|
|
|
Tests that Runtime.evaluate works with REPL mode.
|
|
|
|
Test 'let' re-declaration
|
2020-01-28 06:25:15 +00:00
|
|
|
SyntaxError in REPL mode does not crash the parser
|
2019-11-06 12:26:33 +00:00
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : {
|
|
|
|
type : undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : {
|
|
|
|
description : 21
|
|
|
|
type : number
|
|
|
|
value : 21
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : {
|
|
|
|
type : undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : {
|
|
|
|
description : 42
|
|
|
|
type : number
|
|
|
|
value : 42
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-28 06:25:15 +00:00
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 10
|
|
|
|
exception : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected token 'const'
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
text : Uncaught
|
|
|
|
}
|
|
|
|
result : {
|
|
|
|
className : SyntaxError
|
|
|
|
description : SyntaxError: Unexpected token 'const'
|
|
|
|
objectId : <objectId>
|
|
|
|
subtype : error
|
|
|
|
type : object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|