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

Unified Diff: src/apinatives.js

Issue 428463005: Restore DefineApiAccessorProperty (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/apinatives.js
diff --git a/src/apinatives.js b/src/apinatives.js
index 0ba5c6838db004f06dde4961470964734f346ad9..65dc3cb9608cc574abca2412133f675ba6cc80d5 100644
--- a/src/apinatives.js
+++ b/src/apinatives.js
@@ -104,10 +104,10 @@ function ConfigureTemplateInstance(obj, data) {
// TODO(verwaest): The 5th value used to be access_control. Remove once
// the bindings are updated.
var name = properties[i + 1];
- var getter = Instantiate(properties[i + 2]);
- var setter = Instantiate(properties[i + 3]);
+ var getter = properties[i + 2];
+ var setter = properties[i + 3];
var attribute = properties[i + 4];
- %DefineAccessorPropertyUnchecked(obj, name, getter, setter, attribute);
+ %DefineApiAccessorProperty(obj, name, getter, setter, attribute);
} else {
throw "Bad properties array";
}
« no previous file with comments | « no previous file | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698