Index: test/mjsunit/apply.js |
diff --git a/test/mjsunit/apply.js b/test/mjsunit/apply.js |
index abbc9a11b4a81147d7388922e2c39014a5bb74cd..413ee937c6638cc7d30e2bf75e755a3a89a27d2a 100644 |
--- a/test/mjsunit/apply.js |
+++ b/test/mjsunit/apply.js |
@@ -25,8 +25,6 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --allow-natives-syntax |
- |
function f0() { |
return this; |
} |
@@ -116,8 +114,7 @@ function al() { |
for (var j = 1; j < 0x40000000; j <<= 1) { |
try { |
- var a = %NormalizeElements([]); |
- a.length = j; |
+ var a = new Array(j); |
a[j - 1] = 42; |
assertEquals(42 + j, al.apply(345, a)); |
} catch (e) { |
@@ -125,8 +122,7 @@ for (var j = 1; j < 0x40000000; j <<= 1) { |
for (; j < 0x40000000; j <<= 1) { |
var caught = false; |
try { |
- a = %NormalizeElements([]); |
- a.length = j; |
+ a = new Array(j); |
a[j - 1] = 42; |
al.apply(345, a); |
assertUnreachable("Apply of array with length " + a.length + |