Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: test/mjsunit/regress/regress-417709a.js

Issue 653593002: Catch exceptions thrown when enqueuing change records. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-417709a.js
diff --git a/test/mjsunit/regress/regress-empty-fixed-double-array.js b/test/mjsunit/regress/regress-417709a.js
similarity index 54%
copy from test/mjsunit/regress/regress-empty-fixed-double-array.js
copy to test/mjsunit/regress/regress-417709a.js
index 1db9e2b3e54e2abfddddd23f4ee6618ae438db20..d210c10429ad2a49d8df3436f054dca82d7583bd 100644
--- a/test/mjsunit/regress/regress-empty-fixed-double-array.js
+++ b/test/mjsunit/regress/regress-417709a.js
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --enable-slow-asserts
+// Flags: --stack-size=100
+
+var a = [];
+
+Object.observe(a, function() {});
function f(a, x) {
- a.shift();
- a[0] = x;
+ a.length = x;
+ f(a, x + 1);
}
-f([1], 1.1);
-f([1], 1.1);
-%OptimizeFunctionOnNextCall(f);
-f([1], 1.1);
+assertThrows(function() { f(a, 1); }, RangeError);
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698