Index: test/mjsunit/regress/regress-1229.js |
diff --git a/test/mjsunit/regress/regress-1229.js b/test/mjsunit/regress/regress-1229.js |
index 5447f3f7d223ca885a7ded681e83b2e3459f513b..7a9b1dbd9f59a73f708995f6034b0fbdc2424b53 100644 |
--- a/test/mjsunit/regress/regress-1229.js |
+++ b/test/mjsunit/regress/regress-1229.js |
@@ -123,11 +123,11 @@ invoke(h1, [6, 4]); |
invoke(h2, [6, 4, 8]); |
invoke(h3, [8, 6, 4]); |
-// Check that %_IsConstructCall returns correct value when inlined |
+// Check that new.target returns correct value when inlined |
var NON_CONSTRUCT_MARKER = {}; |
var CONSTRUCT_MARKER = {}; |
function baz(x) { |
- return (!%_IsConstructCall()) ? NON_CONSTRUCT_MARKER : CONSTRUCT_MARKER; |
+ return (new.target === undefined) ? NON_CONSTRUCT_MARKER : CONSTRUCT_MARKER; |
} |
function bar(x, y, z) { |