Reviewers: Hablich,

Description:
Add regression test for resolving "this" in debug evaluate.

[email protected]
BUG=chromium:487289
LOG=N

Please review this at https://codereview.chromium.org/1137293002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+20, -0 lines):
  A test/mjsunit/regress/regress-crbug-487289.js


Index: test/mjsunit/regress/regress-crbug-487289.js
diff --git a/test/mjsunit/regress/regress-crbug-487289.js b/test/mjsunit/regress/regress-crbug-487289.js
new file mode 100644
index 0000000000000000000000000000000000000000..082f4b5fdc8ce69b5026b68e02c90008d4447799
--- /dev/null
+++ b/test/mjsunit/regress/regress-crbug-487289.js
@@ -0,0 +1,20 @@
+// 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: expose-debug-as debug
+
+var Debug = debug.Debug;
+var receiver = null;
+
+Debug.setListener(function(event, exec_state, event_data, data) {
+  if (event != Debug.DebugEvent.Break) return;
+  receiver = exec_state.frame(0).evaluate('this').value();
+});
+
+function f() { debugger; }
+
+var expected = {};
+f.call(expected);
+
+assertEquals(expected, receiver);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to