v8/test/inspector/debugger/break-on-exception-compiler-errors-expected.txt
Marja Hölttä 7f11bf4e90 [error messages] Enhance the "unexpected identifier" error message
Bug: chromium:1338838
Change-Id: I1b8c54b460d272b19a4faa180a491e725bee4b79
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3726147
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81658}
2022-07-12 06:44:27 +00:00

92 lines
2.1 KiB
Plaintext

Break on exceptions from compiler errors.
Running test: testUnexpectedEndOfInput
Runs '+++'
Runtime.evaluate exceptionDetails:
{
columnNumber : 3
exception : {
className : SyntaxError
description : SyntaxError: Unexpected end of input
objectId : <objectId>
subtype : error
type : object
}
exceptionId : <exceptionId>
lineNumber : 0
scriptId : <scriptId>
text : Uncaught
}
Running test: testUnexpectedIdentifier
Runs 'x x'
Runtime.evaluate exceptionDetails:
{
columnNumber : 2
exception : {
className : SyntaxError
description : SyntaxError: Unexpected identifier 'x'
objectId : <objectId>
subtype : error
type : object
}
exceptionId : <exceptionId>
lineNumber : 0
scriptId : <scriptId>
text : Uncaught
}
Running test: testEvalUnexpectedEndOfInput
Runs eval('+++')
paused on exception:
{
className : SyntaxError
description : SyntaxError: Unexpected end of input at <anonymous>:1:1
objectId : <objectId>
subtype : error
type : object
uncaught : false
}
Runtime.evaluate exceptionDetails:
{
columnNumber : 3
exception : {
className : SyntaxError
description : SyntaxError: Unexpected end of input at <anonymous>:1:1
objectId : <objectId>
subtype : error
type : object
}
exceptionId : <exceptionId>
lineNumber : 0
scriptId : <scriptId>
text : Uncaught
}
Running test: testEvalUnexpectedIdentifier
Runs eval('x x')
paused on exception:
{
className : SyntaxError
description : SyntaxError: Unexpected identifier 'x' at <anonymous>:1:1
objectId : <objectId>
subtype : error
type : object
uncaught : false
}
Runtime.evaluate exceptionDetails:
{
columnNumber : 2
exception : {
className : SyntaxError
description : SyntaxError: Unexpected identifier 'x' at <anonymous>:1:1
objectId : <objectId>
subtype : error
type : object
}
exceptionId : <exceptionId>
lineNumber : 0
scriptId : <scriptId>
text : Uncaught
}