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

Unified Diff: test/debugger/debug/es6/debug-evaluate-arrow-function-receiver.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/debugger/debug/debug-step.js ('k') | test/debugger/debug/es6/debug-evaluate-blockscopes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/es6/debug-evaluate-arrow-function-receiver.js
diff --git a/test/mjsunit/es6/debug-evaluate-arrow-function-receiver.js b/test/debugger/debug/es6/debug-evaluate-arrow-function-receiver.js
similarity index 96%
rename from test/mjsunit/es6/debug-evaluate-arrow-function-receiver.js
rename to test/debugger/debug/es6/debug-evaluate-arrow-function-receiver.js
index ce7201df9ce74c6d6ca146eb9431623cddfc1cf9..6410e8decd1a4196c7e4630add02a238ae5ea4f5 100644
--- a/test/mjsunit/es6/debug-evaluate-arrow-function-receiver.js
+++ b/test/debugger/debug/es6/debug-evaluate-arrow-function-receiver.js
@@ -2,7 +2,6 @@
// 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
// Test that debug-evaluate can find the correct this value for an arrow
// function, if "this" is referenced within the arrow function scope.
@@ -17,7 +16,7 @@ function listener(event, exec_state, event_data, data) {
try {
for (var i = 0; i < exec_state.frameCount() - 1; i++) {
var frame = exec_state.frame(i);
- var this_value = frame.evaluate("this").value();
+ var this_value = frame.evaluate("'' + this").value();
var expected = frame.sourceLineText().match(/\/\/ (.*$)/)[1];
print(expected, this_value, frame.sourceLineText());
assertEquals(String(expected), String(this_value));
« no previous file with comments | « test/debugger/debug/debug-step.js ('k') | test/debugger/debug/es6/debug-evaluate-blockscopes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698