| Index: src/js/proxy.js
|
| diff --git a/src/js/proxy.js b/src/js/proxy.js
|
| index 3885e408add350acff7d74276a48a28f7eb8cb5c..f836adc13bca5b3a350ffa10086bca1890881bab 100644
|
| --- a/src/js/proxy.js
|
| +++ b/src/js/proxy.js
|
| @@ -25,7 +25,7 @@ utils.Import(function(from) {
|
| //----------------------------------------------------------------------------
|
|
|
| function ProxyCreate(target, handler) {
|
| - if (!%_IsConstructCall()) {
|
| + if (IS_UNDEFINED(new.target)) {
|
| throw MakeTypeError(kConstructorNotFunction, "Proxy");
|
| }
|
| return %CreateJSProxy(target, handler);
|
| @@ -66,7 +66,7 @@ function DerivedConstructTrap(callTrap) {
|
|
|
| function DelegateCallAndConstruct(callTrap, constructTrap) {
|
| return function() {
|
| - return %Apply(%_IsConstructCall() ? constructTrap : callTrap,
|
| + return %Apply(IS_UNDEFINED(new.target) ? callTrap : constructTrap,
|
| this, arguments, 0, %_ArgumentsLength())
|
| }
|
| }
|
|
|