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

Unified Diff: test/mjsunit/es6/promises.js

Issue 1536013002: [promise] make Promise.resolve match spec (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Re-add mjsunit/es6/promises.js fixups Created 4 years, 12 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/js/promise.js ('k') | test/test262/test262.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/promises.js
diff --git a/test/mjsunit/es6/promises.js b/test/mjsunit/es6/promises.js
index 10e47c43d5c320cf44322344f5c5ed29407513a1..e4c8b389e817c715ddf292b65609eefc5b5388f2 100644
--- a/test/mjsunit/es6/promises.js
+++ b/test/mjsunit/es6/promises.js
@@ -47,6 +47,8 @@ function clear(o) {
clear(o.__proto__)
var properties = getOwnPropertyNames(o)
for (var i in properties) {
+ // Do not clobber Object.prototype.toString, which is used by tests.
+ if (properties[i] === "toString") continue;
clearProp(o, properties[i])
}
}
@@ -1050,7 +1052,8 @@ function assertAsyncDone(iteration) {
log = ""
MyPromise.all([21, Promise.accept(22), 23, MyPromise.accept(24), 25, 26])
- assertTrue(log === "nx24nnx21nnnnx23nnnx25nnx26n", "subclass/all/self")
+ assertTrue(log === "nx24nnx21nnx[object Promise]nnx23nnnx25nnx26n",
+ "subclass/all/self")
})();
(function() {
« no previous file with comments | « src/js/promise.js ('k') | test/test262/test262.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698