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

Unified Diff: test/mjsunit/strong/use-strong.js

Issue 1059273004: [strong] Implement static restrictions on direct eval (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cr feedback Created 5 years, 8 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
« test/cctest/test-parsing.cc ('K') | « test/mjsunit/strong/eval-direct.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strong/use-strong.js
diff --git a/test/mjsunit/strong/use-strong.js b/test/mjsunit/strong/use-strong.js
index bbda2662c2d3e3c13a44bfec8f9b641b5450f9bd..127dc35e2afe53e9c70d979a1b22710f55db4609 100644
--- a/test/mjsunit/strong/use-strong.js
+++ b/test/mjsunit/strong/use-strong.js
@@ -10,7 +10,6 @@
assertThrows("function f() { 'use strong'; 0 == 0 }", SyntaxError);
assertThrows("'use strong'; function f() { 0 == 0 }", SyntaxError);
assertThrows("'use strong'; function f() { function g() { 0 == 0 } }", SyntaxError);
- assertThrows("'use strong'; eval('function f() { 0 == 0 }')", SyntaxError);
assertTrue(eval("function f() { 'use strong' } 0 == 0"));
assertTrue(eval("eval('\\\'use strong\\\''); 0 == 0"));
})();
« test/cctest/test-parsing.cc ('K') | « test/mjsunit/strong/eval-direct.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698