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

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

Issue 999273003: Revert of Debugger: deduplicate shared function info when setting script break points. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/mjsunit/debug-liveedit-4.js ('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
deleted file mode 100644
index 4aaab0b0674b7ae17a6a2a27f979e78673019c25..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-3960.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 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: --allow-natives-syntax
-
-// Test that setting break point is works correctly when the debugger is
-// activated late, which leads to duplicate shared function infos.
-
-(function() {
- var Debug = %GetDebugContext().Debug;
-
- function listener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.Break) return;
- try {
- assertTrue(/foo/.test(exec_state.frame(0).sourceLineText()));
- break_count++;
- } catch (e) {
- exception = e;
- }
- }
-
- for (var i = 0; i < 3; i++) {
- var foo = function() { a = 1; }
- var exception = null;
- var break_count = 0;
- Debug.setListener(listener);
- if (i < 2) Debug.setBreakPoint(foo, 0, 0);
- assertTrue(/\[B\d\]a = 1/.test(Debug.showBreakPoints(foo)));
- foo();
- assertEquals(1, break_count);
- assertNull(exception);
- }
-
- Debug.setListener(null);
-})();
« no previous file with comments | « test/mjsunit/debug-liveedit-4.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698