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

Unified Diff: test/mjsunit/regress/regress-cr-344285.js

Issue 185653004: Experimental parser: merge to r19637 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 10 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
Index: test/mjsunit/regress/regress-cr-344285.js
diff --git a/test/mjsunit/throw-exception-for-null-access.js b/test/mjsunit/regress/regress-cr-344285.js
similarity index 85%
copy from test/mjsunit/throw-exception-for-null-access.js
copy to test/mjsunit/regress/regress-cr-344285.js
index 018cfef9ecb79e43da60134546a6d8f815c0b832..42e8bd109bb34cfb3de436af96f91104f698b836 100644
--- a/test/mjsunit/throw-exception-for-null-access.js
+++ b/test/mjsunit/regress/regress-cr-344285.js
@@ -1,4 +1,4 @@
-// Copyright 2008 the V8 project authors. All rights reserved.
+// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,13 +25,13 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Must throw TypeError when accessing properties of null.
-var caught = false
+function __f_1(g) { return (g/-1) ^ 1; }
+var __v_0 = 1 << 31;
+var __v_2 = __f_1(__v_0);
+caught = false;
try {
- null[0];
- assertTrue(false);
+ Realm.eval(__v_2, "Realm.global(0).y = 1");
} catch (e) {
caught = true;
- assertTrue(e instanceof TypeError);
}
-assertTrue(caught);
+assertTrue(caught, "exception not caught");
« no previous file with comments | « test/mjsunit/regress/regress-check-eliminate-loop-phis.js ('k') | test/mjsunit/regress/regress-crbug-248025.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698