PR-URL: https://github.com/nodejs/node/pull/16271 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Myles Borins <myles.borins@gmail.com>
54 lines
815 B
Plaintext
54 lines
815 B
Plaintext
Checks [[Scopes]] for functions
|
|
Catch:
|
|
{
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : a
|
|
value : {
|
|
description : 1
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
With block:
|
|
{
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : b
|
|
value : {
|
|
description : 2
|
|
type : number
|
|
value : 2
|
|
}
|
|
writable : true
|
|
}
|
|
Closure (closure):
|
|
{
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : c
|
|
value : {
|
|
description : 3
|
|
type : number
|
|
value : 3
|
|
}
|
|
writable : true
|
|
}
|
|
Global:
|
|
{
|
|
configurable : false
|
|
enumerable : true
|
|
isOwn : true
|
|
name : e
|
|
value : {
|
|
description : 5
|
|
type : number
|
|
value : 5
|
|
}
|
|
writable : true
|
|
}
|