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)); |