Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 75939db8bb1d9c7503ac7357dd5a510ca326ff21..c5e21ea4d8334e2b48a82a3001dda698dce1b93a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1352,6 +1352,19 @@ void Template::SetNativeDataProperty(v8::Local<Name> name, |
} |
+void Template::SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic, |
+ PropertyAttribute attribute) { |
+ auto templ = Utils::OpenHandle(this); |
+ i::Isolate* isolate = templ->GetIsolate(); |
+ ENTER_V8(isolate); |
+ i::HandleScope scope(isolate); |
+ // TODO(dcarney): split api to allow values of v8::Value or v8::TemplateInfo. |
Toon Verwaest
2015/10/20 15:00:54
dcarney doesn't work on v8 anymore
caitp (gmail)
2015/10/20 15:38:06
Copy/pasted from one of the similar methods. Do yo
Toon Verwaest
2015/10/21 16:02:48
What it probably wants is what jochen is working o
|
+ i::ApiNatives::AddDataProperty(isolate, templ, Utils::OpenHandle(*name), |
+ intrinsic, |
+ static_cast<PropertyAttributes>(attribute)); |
+} |
+ |
+ |
void ObjectTemplate::SetAccessor(v8::Local<String> name, |
AccessorGetterCallback getter, |
AccessorSetterCallback setter, |