Index: test/mjsunit/regress/regress-crbug-259300.js |
diff --git a/test/mjsunit/regress/regress-frame-details-null-receiver.js b/test/mjsunit/regress/regress-crbug-259300.js |
similarity index 85% |
copy from test/mjsunit/regress/regress-frame-details-null-receiver.js |
copy to test/mjsunit/regress/regress-crbug-259300.js |
index d15ed4d00ae774ad01406855fc42cb8c1dfbcc07..c57b0e6f917028f790609482c7d54269b0da615f 100644 |
--- a/test/mjsunit/regress/regress-frame-details-null-receiver.js |
+++ b/test/mjsunit/regress/regress-crbug-259300.js |
@@ -25,28 +25,25 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --expose-debug-as debug --allow-natives-syntax |
+// Flags: --expose-debug-as debug |
Debug = debug.Debug; |
var listened = false; |
+var recursion_depth = 0; |
function listener(event, exec_state, event_data, data) { |
- if (event == Debug.DebugEvent.Exception) { |
+ if (event == Debug.DebugEvent.Break) { |
+ recursion_depth++; |
+ var disable_break = (recursion_depth > 2); |
for (var i = 0; i < exec_state.frameCount(); i++) { |
- print(exec_state.frame(i).receiver()); |
- print(exec_state.frame(i).func().name()); |
+ exec_state.frame(i).evaluate("debugger", disable_break); |
} |
} |
listened = true; |
} |
Debug.setListener(listener); |
-Debug.setBreakOnException(); |
- |
-assertThrows(function() { delete null['foo']; }); |
- |
-Debug.clearBreakOnException(); |
+eval("debugger"); |
Debug.setListener(null); |
- |
assertTrue(listened); |