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

Unified Diff: test/mjsunit/regress/regress-crbug-135066.js

Issue 11438042: Allow lazy compilation (and thus optimisation) of functions inside eval. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed copyright date Created 8 years 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/mjsunit/regress/regress-492.js ('K') | « test/mjsunit/regress/regress-492.js ('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-crbug-135066.js
diff --git a/test/mjsunit/regress/regress-crbug-135066.js b/test/mjsunit/regress/regress-crbug-135066.js
index 1aeca8b1a32d678ba7274c60230a77fdda97f6aa..9b4c99e75413e925626b400b1e3b8c9c7cdb208e 100644
--- a/test/mjsunit/regress/regress-crbug-135066.js
+++ b/test/mjsunit/regress/regress-crbug-135066.js
@@ -36,8 +36,9 @@ eval(
" return x;" +
"};" +
"assertSame(23, f());" +
+ "f;" +
filler
-);
+)();
// Test default eval in strict context.
(function() {
@@ -48,6 +49,7 @@ eval(
" return y;" +
"};" +
"assertSame(42, g());" +
+ "g;" +
filler
- );
+ )();
})();
« test/mjsunit/regress/regress-492.js ('K') | « test/mjsunit/regress/regress-492.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698