Index: test/mjsunit/property-load-across-eval.js |
diff --git a/test/mjsunit/property-load-across-eval.js b/test/mjsunit/property-load-across-eval.js |
index 5419cc7f3b905d235be703e06b90ef8e9f134b62..98b621e7922588acf0e5a73af91dc487a0ac2c6c 100644 |
--- a/test/mjsunit/property-load-across-eval.js |
+++ b/test/mjsunit/property-load-across-eval.js |
@@ -45,19 +45,21 @@ function testNoShadowing() { |
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 @@ function testNoShadowing() { |
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(); |