Index: test/mjsunit/regress/regress-147497.js |
diff --git a/test/mjsunit/regress/regress-2296.js b/test/mjsunit/regress/regress-147497.js |
similarity index 86% |
copy from test/mjsunit/regress/regress-2296.js |
copy to test/mjsunit/regress/regress-147497.js |
index c00f14f172a0cb099d2ef411fe25bfffbab7e559..0012b08f32e28d33cd54d1d54979065d0e8e2ff7 100644 |
--- a/test/mjsunit/regress/regress-2296.js |
+++ b/test/mjsunit/regress/regress-147497.js |
@@ -27,14 +27,19 @@ |
// Flags: --expose-debug-as debug |
-Debug = debug.Debug |
+Debug = debug.Debug; |
function listener(event, exec_state, event_data, data) { |
- event_data.script().setSource(1); |
+ if (event == Debug.DebugEvent.Break) { |
+ exec_state.prepareStep(Debug.StepAction.StepNext, 10); |
+ } |
}; |
Debug.setListener(listener); |
-eval('0'); |
+var statement = ""; |
+for (var i = 0; i < 1024; i++) statement += "z"; |
+statement = 'with(0)' + statement + '=function foo(){}'; |
-Debug.setListener(null); |
+debugger; |
+eval(statement); |