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

Unified Diff: test/mjsunit/debug-compile-event-newfunction.js

Issue 429583002: Revert "Make --always-opt also optimize toplevel code." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/cctest/test-parsing.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-compile-event-newfunction.js
diff --git a/test/mjsunit/debug-compile-event-newfunction.js b/test/mjsunit/debug-compile-event-newfunction.js
index 32e788906515a04113c00dba3fbccb8d42d59d8e..fb43a87f77c045a05f1b4fd07ff3cd677d8f76f8 100644
--- a/test/mjsunit/debug-compile-event-newfunction.js
+++ b/test/mjsunit/debug-compile-event-newfunction.js
@@ -61,8 +61,7 @@ function listener(event, exec_state, event_data, data) {
Debug.setListener(listener);
// Create a function from its body text. It will lead to an eval.
-var f = new Function('arg1', 'return arg1 + 1;');
-// TODO(titzer): Assignment only needed because source positions are borked.
+new Function('arg1', 'return arg1 + 1;');
assertNull(exception, "exception in listener");
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698