mirror of
https://github.com/nodejs/node.git
synced 2025-05-16 08:52:55 +00:00

PR-URL: https://github.com/nodejs/node/pull/32116 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
42 lines
878 B
Plaintext
42 lines
878 B
Plaintext
Tests scoped variable in Runtime.evaluate
|
|
Evaluating 'let a = 42;'
|
|
{
|
|
type : undefined
|
|
}
|
|
Evaluating 'a'
|
|
{
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
Evaluating 'let a = 239;'
|
|
{
|
|
exceptionDetails : {
|
|
columnNumber : 0
|
|
exception : {
|
|
className : SyntaxError
|
|
description : SyntaxError: Identifier 'a' has already been declared
|
|
objectId : <objectId>
|
|
subtype : error
|
|
type : object
|
|
}
|
|
exceptionId : <exceptionId>
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
text : Uncaught
|
|
}
|
|
result : {
|
|
className : SyntaxError
|
|
description : SyntaxError: Identifier 'a' has already been declared
|
|
objectId : <objectId>
|
|
subtype : error
|
|
type : object
|
|
}
|
|
}
|
|
Evaluating 'a'
|
|
{
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|