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

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

Issue 2721633004: [inspector] fixed crash on attempt to access empty scope_info on break (Closed)
Patch Set: better test Created 3 years, 10 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/ast/scopes.cc ('k') | test/inspector/debugger/step-into-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-arrow.js
diff --git a/test/inspector/debugger/step-into-arrow.js b/test/inspector/debugger/step-into-arrow.js
new file mode 100644
index 0000000000000000000000000000000000000000..8b024592b8f8c0d149cd1d7be2924d70ffc35741
--- /dev/null
+++ b/test/inspector/debugger/step-into-arrow.js
@@ -0,0 +1,20 @@
+// 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 mult = (x) => (y) =>
+ y ? mult(x * y) : x;
+//# sourceURL=test.js`);
+
+Protocol.Debugger.onPaused(message => {
+ InspectorTest.logCallFrameSourceLocation(message.params.callFrames[0]);
+ Protocol.Debugger.stepInto();
+})
+
+Protocol.Debugger.enable();
+Protocol.Debugger.setBreakpointByUrl({ url: 'test.js', lineNumber: 1 })
+ .then(() => Protocol.Runtime.evaluate({ expression: 'mult(5)(4)()' }))
+ .then(InspectorTest.completeTest);
« no previous file with comments | « src/ast/scopes.cc ('k') | test/inspector/debugger/step-into-arrow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698