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

Unified Diff: test/mjsunit/regress/regress-3960.js

Issue 1136733002: Don't create debug context if debug listener is not set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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-debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-3960.js
diff --git a/test/mjsunit/regress/regress-3960.js b/test/mjsunit/regress/regress-3960.js
index 4aaab0b0674b7ae17a6a2a27f979e78673019c25..3387da419d710002d91740ef853e0712b802c1c7 100644
--- a/test/mjsunit/regress/regress-3960.js
+++ b/test/mjsunit/regress/regress-3960.js
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --allow-natives-syntax --expose-debug-as debug
Yang 2015/05/11 06:44:19 This makes this test pointless (see comment). Sinc
yurys 2015/05/12 06:46:59 Done. I added DebugScope to Runtime_GetDebugContex
-// Test that setting break point is works correctly when the debugger is
+// Test that setting break point works correctly when the debugger is
// activated late, which leads to duplicate shared function infos.
(function() {
- var Debug = %GetDebugContext().Debug;
+ var Debug = debug.Debug;
function listener(event, exec_state, event_data, data) {
if (event != Debug.DebugEvent.Break) return;
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698