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

Unified Diff: test/inspector/debugger/step-into-nested-arrow.js

Issue 2751573003: [debugger] correctly find inner function scope. (Closed)
Patch Set: Created 3 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 | « src/debug/debug-scopes.cc ('k') | test/inspector/debugger/step-into-nested-arrow-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/step-into-nested-arrow.js
diff --git a/test/inspector/debugger/step-into-nested-arrow.js b/test/inspector/debugger/step-into-nested-arrow.js
new file mode 100644
index 0000000000000000000000000000000000000000..0b0307a5e6319ee290205bbd5a8c5ff113343756
--- /dev/null
+++ b/test/inspector/debugger/step-into-nested-arrow.js
@@ -0,0 +1,23 @@
+// Copyright 2017 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.
+
+InspectorTest.log(
+ 'Checks that stepInto nested arrow function doesn\'t produce crash.');
+
+InspectorTest.setupScriptMap();
+InspectorTest.addScript(`
+const rec = (x) => (y) =>
+rec();
+//# sourceURL=test.js`);
+
+Protocol.Debugger.onPaused(message => {
+ InspectorTest.log("paused");
+ InspectorTest.logCallFrames(message.params.callFrames);
+ Protocol.Debugger.stepInto();
+})
+
+Protocol.Debugger.enable();
+Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 2 })
+ .then(() => Protocol.Runtime.evaluate({ expression: 'rec(5)(4)' }))
+ .then(InspectorTest.completeTest);
« no previous file with comments | « src/debug/debug-scopes.cc ('k') | test/inspector/debugger/step-into-nested-arrow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698