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

Unified Diff: test/mjsunit/property-load-across-eval.js

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 5 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 | « test/mjsunit/polymorph-arrays.js ('k') | test/mjsunit/regexp-call-as-function.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/property-load-across-eval.js
===================================================================
--- test/mjsunit/property-load-across-eval.js (revision 8618)
+++ test/mjsunit/property-load-across-eval.js (working copy)
@@ -45,19 +45,21 @@
assertEquals(2, y);
assertEquals('global', global_function());
assertEquals('local', local_function());
+ var exception = false;
try {
const_uninitialized();
- assertUnreachable();
} catch(e) {
- // Ignore.
+ exception = true;
}
+ assertTrue(exception);
assertEquals('const_global', const_initialized());
+ exception = false;
try {
local_const_uninitialized();
- assertUnreachable();
} catch(e) {
- // Ignore.
+ exception = true;
}
+ assertTrue(exception);
assertEquals('const_local', local_const_initialized());
function g() {
assertEquals(1, x);
@@ -65,19 +67,21 @@
assertEquals(2, y);
assertEquals('global', global_function());
assertEquals('local', local_function());
+ var exception = false;
try {
const_uninitialized();
- assertUnreachable();
} catch(e) {
- // Ignore.
+ exception = true;
}
+ assertTrue(exception);
assertEquals('const_global', const_initialized());
+ exception = false;
try {
local_const_uninitialized();
- assertUnreachable();
} catch(e) {
- // Ignore.
+ exception = true;
}
+ assertTrue(exception);
assertEquals('const_local', local_const_initialized());
}
g();
Property changes on: test/mjsunit/property-load-across-eval.js
___________________________________________________________________
Modified: svn:mergeinfo
Merged /branches/bleeding_edge/test/mjsunit/property-load-across-eval.js:r8061-8597
« no previous file with comments | « test/mjsunit/polymorph-arrays.js ('k') | test/mjsunit/regexp-call-as-function.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698