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

Unified Diff: test/mjsunit/es6/debug-stepnext-for.js

Issue 1491923003: Improve rendering of callsite with non-function target. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 5 years 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
Index: test/mjsunit/es6/debug-stepnext-for.js
diff --git a/test/mjsunit/es6/debug-stepnext-for.js b/test/mjsunit/es6/debug-stepnext-for.js
index 001f7053fde52b40081c087ea264fe9643e7b034..c9963515b8a12023674277b8bfd06663187097d8 100644
--- a/test/mjsunit/es6/debug-stepnext-for.js
+++ b/test/mjsunit/es6/debug-stepnext-for.js
@@ -86,6 +86,9 @@ Debug.setListener(null); // Break z
print("log:\n"+ JSON.stringify(log));
// The let declaration differs from var in that the loop variable
// is declared in every iteration.
+// TODO(verwaest): For-of has hacky position numbers for Symbol.iterator and
+// .next. Restore to proper positions once the CallPrinter can disambiguate
+// based on other values.
var expected = [
// Entry
"a2","b2",
@@ -99,12 +102,12 @@ var expected = [
"f12","f7","F4","f7","F4","f7","F4","f7",
// For-in-let: get enumerable, next, body, next, ...
"g16","g11","G4","g11","G4","g11","G4","g11",
- // For-of-var: next(), body, next(), body, ...
- "h16","H4","h16","H4","h16","H4","h16",
- // For-of: next(), body, next(), body, ...
- "i12","I4","i12","I4","i12","I4","i12",
- // For-of-let: next(), body, next(), ...
- "j16","J4","j16","J4","j16","J4","j16",
+ // For-of-var: [Symbol.iterator](), next(), body, next(), body, ...
+ "h16","h14","h15","H4","h15","H4","h15","H4","h15",
+ // For-of: [Symbol.iterator](), next(), body, next(), body, ...
+ "i12","i10","i11","I4","i11","I4","i11","I4","i11",
+ // For-of-let: [Symbol.iterator](), next(), body, next(), ...
+ "j16","j14","j15","J4","j15","J4","j15","J4","j15",
// For-var: var decl, condition, body, next, condition, body, ...
"k7","k20","K4","k26","k20","K4","k26","k20","K4","k26","k20",
// For: init, condition, body, next, condition, body, ...
« no previous file with comments | « test/mjsunit/es6/debug-promises/throw-with-undefined-reject.js ('k') | test/webkit/fast/js/toString-overrides-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698