diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es6/spread-call.js')
-rw-r--r-- | deps/v8/test/mjsunit/es6/spread-call.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/es6/spread-call.js b/deps/v8/test/mjsunit/es6/spread-call.js index 33d55a815f..cdedd990c8 100644 --- a/deps/v8/test/mjsunit/es6/spread-call.js +++ b/deps/v8/test/mjsunit/es6/spread-call.js @@ -2,7 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -(function testSpreadCallsStrict() { +// Flags: --allow-natives-syntax + +function testSpreadCallsStrict() { "use strict" function countArgs() { return arguments.length; } @@ -158,7 +160,10 @@ // Interleaved spread/unspread args assertEquals(36, O.sum(0, ...[1], 2, 3, ...[4, 5], 6, 7, 8)); assertEquals(45, O.sum(0, ...[1], 2, 3, ...[4, 5], 6, 7, 8, ...[9])); -})(); +}; +testSpreadCallsStrict(); +%OptimizeFunctionOnNextCall(testSpreadCallsStrict); +testSpreadCallsStrict(); (function testSpreadCallsSloppy() { |