Revision f230a1cf deps/v8/src/proxy.js
deps/v8/src/proxy.js | ||
---|---|---|
40 | 40 |
throw MakeTypeError("handler_non_object", ["create"]) |
41 | 41 |
if (IS_UNDEFINED(proto)) |
42 | 42 |
proto = null |
43 |
else if (!(IS_SPEC_OBJECT(proto) || proto === null))
|
|
43 |
else if (!(IS_SPEC_OBJECT(proto) || IS_NULL(proto)))
|
|
44 | 44 |
throw MakeTypeError("proto_non_object", ["create"]) |
45 | 45 |
return %CreateJSProxy(handler, proto) |
46 | 46 |
} |
... | ... | |
56 | 56 |
// Make sure the trap receives 'undefined' as this. |
57 | 57 |
var construct = constructTrap |
58 | 58 |
constructTrap = function() { |
59 |
return %Apply(construct, void 0, arguments, 0, %_ArgumentsLength());
|
|
59 |
return %Apply(construct, UNDEFINED, arguments, 0, %_ArgumentsLength());
|
|
60 | 60 |
} |
61 | 61 |
} else { |
62 | 62 |
throw MakeTypeError("trap_function_expected", |
Also available in: Unified diff