node/deps/v8/test/inspector/debugger/evaluate-on-call-frame-new-target-expected.txt
Yagiz Nizipli 16e03e7968 deps: update V8 to 10.9.194.4
PR-URL: https://github.com/nodejs/node/pull/45579
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-11-27 17:27:13 +00:00

43 lines
1.1 KiB
Plaintext

Test that new.target can be inspected in Debugger.evaluateOnCallFrame
Running test: withExplicitUsage
{
className : Function
description : function C() { const fn = new.target; debugger; }
objectId : <objectId>
type : function
}
Running test: withDirectEval
{
className : Function
description : function D() { const fn = eval('new.target'); debugger; }
objectId : <objectId>
type : function
}
Running test: withoutExplicitUsage
{
className : ReferenceError
description : ReferenceError: .new.target is not defined at eval (eval at E (:1:1), <anonymous>:1:1) at new E (<anonymous>:13:3) at <anonymous>:1:1
objectId : <objectId>
subtype : error
type : object
}
Running test: withInheritence
{
className : Function
description : class B extends A {}
objectId : <objectId>
type : function
}
Running test: withContextAllocatedNewTarget
{
className : Function
description : function F() { () => new.target; // context-allocate. debugger; }
objectId : <objectId>
type : function
}