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

Unified Diff: test/mjsunit/es6/array-concat.js

Issue 1721993002: Ship ES2015 Symbol.species (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 4 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/flag-definitions.h ('k') | test/mjsunit/es6/debug-promises/throw-with-throw-in-reject.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/array-concat.js
diff --git a/test/mjsunit/es6/array-concat.js b/test/mjsunit/es6/array-concat.js
index ec730db58b11089419896a11eed209998b6fcd16..801c225e7adab0035e947b135b1224df7a06f711 100644
--- a/test/mjsunit/es6/array-concat.js
+++ b/test/mjsunit/es6/array-concat.js
@@ -811,9 +811,10 @@ logger.get = function(t, trap, r) {
log.length = 0;
assertEquals([obj], Array.prototype.concat.apply(obj));
- assertEquals(1, log.length);
+ assertEquals(2, log.length); // An extra read for the constructor
for (var i in log) assertSame(target, log[i][1]);
- assertEquals(["get", target, Symbol.isConcatSpreadable, obj], log[0]);
+ assertEquals(["get", target, "constructor", obj], log[0]);
+ assertEquals(["get", target, Symbol.isConcatSpreadable, obj], log[1]);
})();
@@ -835,14 +836,15 @@ logger.get = function(t, trap, r) {
log.length = 0;
assertEquals(["a", "b"], Array.prototype.concat.apply(obj));
- assertEquals(6, log.length);
+ assertEquals(7, log.length);
for (var i in log) assertSame(target, log[i][1]);
- assertEquals(["get", target, Symbol.isConcatSpreadable, obj], log[0]);
- assertEquals(["get", target, "length", obj], log[1]);
- assertEquals(["has", target, "0"], log[2]);
- assertEquals(["get", target, "0", obj], log[3]);
- assertEquals(["has", target, "1"], log[4]);
- assertEquals(["get", target, "1", obj], log[5]);
+ assertEquals(["get", target, "constructor", obj], log[0]);
+ assertEquals(["get", target, Symbol.isConcatSpreadable, obj], log[1]);
+ assertEquals(["get", target, "length", obj], log[2]);
+ assertEquals(["has", target, "0"], log[3]);
+ assertEquals(["get", target, "0", obj], log[4]);
+ assertEquals(["has", target, "1"], log[5]);
+ assertEquals(["get", target, "1", obj], log[6]);
})();
« no previous file with comments | « src/flag-definitions.h ('k') | test/mjsunit/es6/debug-promises/throw-with-throw-in-reject.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698