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

Unified Diff: src/harmony-tostring.js

Issue 1065863003: Use array literals instead of array constructor in native javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase and fix 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/harmony-reflect.js ('k') | src/harmony-typedarray.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-tostring.js
diff --git a/src/harmony-tostring.js b/src/harmony-tostring.js
index 0c3f3ca9e21ec8b168c53a6d2922fa8cc45be8fb..413079ec381f5818a6456d50bafa92abab3cc0b2 100644
--- a/src/harmony-tostring.js
+++ b/src/harmony-tostring.js
@@ -25,10 +25,10 @@ function ObjectToStringHarmony() {
function HarmonyToStringExtendSymbolPrototype() {
%CheckIsBootstrapping();
- InstallConstants(global.Symbol, $Array(
- // TODO(dslomov, caitp): Move to symbol.js when shipping
- "toStringTag", symbolToStringTag
- ));
+ InstallConstants(global.Symbol, [
+ // TODO(dslomov, caitp): Move to symbol.js when shipping
+ "toStringTag", symbolToStringTag
+ ]);
}
HarmonyToStringExtendSymbolPrototype();
« no previous file with comments | « src/harmony-reflect.js ('k') | src/harmony-typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698