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

Unified Diff: src/array.js

Issue 6445: This change removes the %AddProperty native JavaScript function from V8.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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/apinatives.js ('k') | src/date-delay.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array.js
===================================================================
--- src/array.js (revision 423)
+++ src/array.js (working copy)
@@ -907,7 +907,7 @@
var key = functions[i];
var f = functions[i + 1];
%FunctionSetName(f, key);
- %AddProperty(prototype, key, f, attributes);
+ %SetProperty(prototype, key, f, attributes);
}
}
@@ -924,7 +924,7 @@
function SetupArray() {
// Setup non-enumerable constructor property on the Array.prototype
// object.
- %AddProperty($Array.prototype, "constructor", $Array, DONT_ENUM);
+ %SetProperty($Array.prototype, "constructor", $Array, DONT_ENUM);
// Setup non-enumerable functions of the Array.prototype object and
// set their names.
« no previous file with comments | « src/apinatives.js ('k') | src/date-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698