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

Unified Diff: test/mjsunit/debug-break-native.js

Issue 2497973002: [debug-wrapper] Further extend the debug wrapper (Closed)
Patch Set: Address comments Created 4 years, 1 month 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/mjsunit/debug-backtrace-text.js ('k') | test/mjsunit/debug-breakpoints.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-break-native.js
diff --git a/test/mjsunit/debug-break-native.js b/test/mjsunit/debug-break-native.js
deleted file mode 100644
index 3e6fff42b57b7ddb89ef04342bf92cd468066dc6..0000000000000000000000000000000000000000
--- a/test/mjsunit/debug-break-native.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --expose-debug-as debug
-
-Debug = debug.Debug
-var exception = null;
-
-function breakListener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.Break) return;
- try {
- exec_state.prepareStep(Debug.StepAction.StepIn);
- // Assert that the break happens at an intended location.
- assertTrue(exec_state.frame(0).sourceLineText().indexOf("// break") > 0);
- } catch (e) {
- exception = e;
- }
-}
-
-Debug.setListener(breakListener);
-
-debugger; // break
-
-function f(x) {
- return x; // break
-} // break
-
-Debug.setBreakPoint(f, 0, 0); // break
-Debug.scripts(); // break
-debug.MakeMirror(f); // break
-
-new Error("123").stack; // break
-Math.sin(0); // break
-
-f("this should break"); // break
-
-Debug.setListener(null); // break
-
-f("this should not break");
-
-assertNull(exception);
« no previous file with comments | « test/mjsunit/debug-backtrace-text.js ('k') | test/mjsunit/debug-breakpoints.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698