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 fb43a87f77c045a05f1b4fd07ff3cd677d8f76f8..32e788906515a04113c00dba3fbccb8d42d59d8e 100644 |
--- a/test/mjsunit/debug-compile-event-newfunction.js |
+++ b/test/mjsunit/debug-compile-event-newfunction.js |
@@ -61,7 +61,8 @@ function listener(event, exec_state, event_data, data) { |
Debug.setListener(listener); |
// Create a function from its body text. It will lead to an eval. |
-new Function('arg1', 'return arg1 + 1;'); |
+var f = new Function('arg1', 'return arg1 + 1;'); |
+// TODO(titzer): Assignment only needed because source positions are borked. |
assertNull(exception, "exception in listener"); |