Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index ba8de1cc9c70aee427f8566dfd884c3eae736619..d3c1cfb23f32fdee4672a9b97fe82cf748f262c2 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1352,6 +1352,18 @@ 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); |
+ i::ApiNatives::AddDataProperty(isolate, templ, Utils::OpenHandle(*name), |
+ intrinsic, |
+ static_cast<PropertyAttributes>(attribute)); |
+} |
+ |
+ |
void ObjectTemplate::SetAccessor(v8::Local<String> name, |
AccessorGetterCallback getter, |
AccessorSetterCallback setter, |