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

Unified Diff: src/object-observe.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/messages.js ('k') | src/regexp.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/object-observe.js
diff --git a/src/object-observe.js b/src/object-observe.js
index 3ba917ecda9e6c7d4d75148f83b9775130aacbef..1d23085fd362af21d0ea181016c776b75a47cdec 100644
--- a/src/object-observe.js
+++ b/src/object-observe.js
@@ -594,20 +594,20 @@ function ObserveMicrotaskRunner() {
function SetupObjectObserve() {
%CheckIsBootstrapping();
- InstallFunctions($Object, DONT_ENUM, $Array(
+ InstallFunctions($Object, DONT_ENUM, [
"deliverChangeRecords", ObjectDeliverChangeRecords,
"getNotifier", ObjectGetNotifier,
"observe", ObjectObserve,
"unobserve", ObjectUnobserve
- ));
- InstallFunctions($Array, DONT_ENUM, $Array(
+ ]);
+ InstallFunctions($Array, DONT_ENUM, [
"observe", ArrayObserve,
"unobserve", ArrayUnobserve
- ));
- InstallFunctions(notifierPrototype, DONT_ENUM, $Array(
+ ]);
+ InstallFunctions(notifierPrototype, DONT_ENUM, [
"notify", ObjectNotifierNotify,
"performChange", ObjectNotifierPerformChange
- ));
+ ]);
}
SetupObjectObserve();
« no previous file with comments | « src/messages.js ('k') | src/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698