mirror of
https://github.com/robertkrimen/otto
synced 2025-10-12 20:27:30 +08:00
eval.length === 1
This commit is contained in:
parent
cc112ca544
commit
2c4c22ca81
|
@ -701,7 +701,7 @@ func newContext() *_runtime {
|
|||
"undefined", UndefinedValue(),
|
||||
"NaN", NaNValue(),
|
||||
"Infinity", positiveInfinityValue(),
|
||||
"eval", builtinGlobal_eval,
|
||||
"eval", 1, builtinGlobal_eval,
|
||||
"parseInt", builtinGlobal_parseInt,
|
||||
"parseFloat", builtinGlobal_parseFloat,
|
||||
"isNaN", builtinGlobal_isNaN,
|
||||
|
|
|
@ -43,6 +43,8 @@ func TestGlobal(t *testing.T) {
|
|||
test(`new Number().constructor == Number`, "true")
|
||||
|
||||
test(`this.hasOwnProperty`, "[function]")
|
||||
|
||||
test(`eval.length === 1`, "true")
|
||||
}
|
||||
|
||||
func TestGlobalLength(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user