Index: test/mjsunit/const-eval-init.js |
diff --git a/test/mjsunit/const-eval-init.js b/test/mjsunit/const-eval-init.js |
index 3f380d9d947f59f59f8d16c6a1fdb6f81c5b33da..d3503845d0c159f106fe7a68e95d41f14105413e 100644 |
--- a/test/mjsunit/const-eval-init.js |
+++ b/test/mjsunit/const-eval-init.js |
@@ -25,6 +25,8 @@ |
// (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 |
+ |
// Test the handling of initialization of deleted const variables. |
// This only makes sense in local scopes since the declaration and |
// initialization of consts in the global scope happen at the same |
@@ -67,9 +69,11 @@ function testAssignmentArgument(x) { |
assertEquals(7, x); |
} |
-for (var i = 0; i < 10000; i++) { |
+for (var i = 0; i < 5; i++) { |
testAssignmentArgument(); |
} |
+%OptimizeFunctionOnNextCall(testAssignmentArgument); |
+testAssignmentArgument(); |
assertEquals(6, x); |
__defineSetter__('x', function() { throw 42; }); |