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

Unified Diff: test/mjsunit/es6/prototype-ordinary-objects.js

Issue 1072083002: [es6] don't "replace" Object.prototype.toString for --harmony-tostring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Final fixup... Created 5 years, 8 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/v8natives.js ('k') | test/mjsunit/function-arguments-null.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/prototype-ordinary-objects.js
diff --git a/test/mjsunit/es6/prototype-ordinary-objects.js b/test/mjsunit/es6/prototype-ordinary-objects.js
index 6704288089a50dd355a09e16d96de47925d83e85..9cc5d0ff88e5b2357379462c5fa5f35241fce7ba 100644
--- a/test/mjsunit/es6/prototype-ordinary-objects.js
+++ b/test/mjsunit/es6/prototype-ordinary-objects.js
@@ -48,6 +48,9 @@ var funcs = [
for (var fun of funcs) {
var p = fun.prototype;
+
+ // @@toStringTag is tested separately, and interferes with this test.
+ if (Symbol.toStringTag) delete p[Symbol.toStringTag];
assertEquals('[object Object]', Object.prototype.toString.call(p));
}
@@ -60,5 +63,5 @@ var funcs = [
for (var fun of funcs) {
var p = fun.prototype;
- assertEquals('[object ' + fun.name + ']', Object.prototype.toString.call(p));
+ assertEquals(`[object ${fun.name}]`, Object.prototype.toString.call(p));
}
« no previous file with comments | « src/v8natives.js ('k') | test/mjsunit/function-arguments-null.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698