mirror of
https://github.com/nodejs/node.git
synced 2025-05-16 07:33:15 +00:00

PR-URL: https://github.com/nodejs/node/pull/54077 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
101 lines
2.1 KiB
Plaintext
101 lines
2.1 KiB
Plaintext
Checks that console messages before Runtime.enable include a single stack frame
|
|
|
|
Running test: testEnable
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Error on toplevel
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 8
|
|
functionName :
|
|
lineNumber : 10
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
}
|
|
timestamp : <timestamp>
|
|
type : error
|
|
}
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Hello from foo!
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 10
|
|
functionName : foo
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
}
|
|
timestamp : <timestamp>
|
|
type : log
|
|
}
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Hello from bar!
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 10
|
|
functionName : bar
|
|
lineNumber : 6
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
[1] : {
|
|
columnNumber : 0
|
|
functionName :
|
|
lineNumber : 12
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
}
|
|
timestamp : <timestamp>
|
|
type : trace
|
|
}
|
|
{
|
|
args : [
|
|
[0] : {
|
|
type : string
|
|
value : Hello from foo!
|
|
}
|
|
]
|
|
executionContextId : <executionContextId>
|
|
stackTrace : {
|
|
callFrames : [
|
|
[0] : {
|
|
columnNumber : 10
|
|
functionName : foo
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
url : test.js
|
|
}
|
|
]
|
|
}
|
|
timestamp : <timestamp>
|
|
type : log
|
|
}
|
|
|
|
Running test: testEnableAfterDiscard
|