09674b9283
This is a reland of part of https://chromium-review.googlesource.com/c/v8/v8/+/1397664. It drops the explicit fni_.Infer() call after parsing arrow functions. We'll want to avoid inferring if the arrow function is an argument to a function call. It also avoids adding the single argument of "name => " to the inferred name. Bug: chromium:916975 Change-Id: I96a934408113483d73eba14073fe21e8cfe2ada6 Reviewed-on: https://chromium-review.googlesource.com/c/1397665 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Maya Lekova <mslekova@chromium.org> Cr-Commit-Position: refs/heads/master@{#58613}
114 lines
3.4 KiB
Plaintext
114 lines
3.4 KiB
Plaintext
Check that exceptionThrown is supported by test runner.
|
|
{
|
|
method : Runtime.exceptionThrown
|
|
params : {
|
|
exceptionDetails : {
|
|
columnNumber : 2
|
|
exception : {
|
|
className : Error
|
|
description : Error at <anonymous>:2:9
|
|
objectId : <objectId>
|
|
preview : {
|
|
description : Error at <anonymous>:2:9
|
|
overflow : false
|
|
properties : [
|
|
[0] : {
|
|
name : stack
|
|
type : string
|
|
value : Error at <anonymous>:2:9
|
|
}
|
|
]
|
|
subtype : error
|
|
type : object
|
|
}
|
|
subtype : error
|
|
type : object
|
|
}
|
|
exceptionId : <exceptionId>
|
|
executionContextId : <executionContextId>
|
|
lineNumber : 1
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 8
|
|
functionName :
|
|
lineNumber : 1
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
}
|
|
text : Uncaught Error
|
|
}
|
|
timestamp : <timestamp>
|
|
}
|
|
}
|
|
{
|
|
method : Runtime.exceptionThrown
|
|
params : {
|
|
exceptionDetails : {
|
|
columnNumber : 1
|
|
exception : {
|
|
className : SyntaxError
|
|
description : SyntaxError: Unexpected token }
|
|
objectId : <objectId>
|
|
preview : {
|
|
description : SyntaxError: Unexpected token }
|
|
overflow : false
|
|
properties : [
|
|
[0] : {
|
|
name : stack
|
|
type : string
|
|
value : SyntaxError: Unexpected token }
|
|
}
|
|
[1] : {
|
|
name : message
|
|
type : string
|
|
value : Unexpected token }
|
|
}
|
|
]
|
|
subtype : error
|
|
type : object
|
|
}
|
|
subtype : error
|
|
type : object
|
|
}
|
|
exceptionId : <exceptionId>
|
|
executionContextId : <executionContextId>
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
text : Uncaught SyntaxError: Unexpected token }
|
|
}
|
|
timestamp : <timestamp>
|
|
}
|
|
}
|
|
{
|
|
method : Runtime.exceptionThrown
|
|
params : {
|
|
exceptionDetails : {
|
|
columnNumber : 2
|
|
exception : {
|
|
description : 239
|
|
type : number
|
|
value : 239
|
|
}
|
|
exceptionId : <exceptionId>
|
|
executionContextId : <executionContextId>
|
|
lineNumber : 1
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 2
|
|
functionName :
|
|
lineNumber : 1
|
|
scriptId : <scriptId>
|
|
url :
|
|
}
|
|
]
|
|
}
|
|
text : Uncaught 239
|
|
}
|
|
timestamp : <timestamp>
|
|
}
|
|
}
|