MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / DefineValueProperty

Function DefineValueProperty

test/object/object.cc:286–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void DefineValueProperty(const CallbackInfo& info) {
287 Object obj = info[0].As<Object>();
288 Name name = info[1].As<Name>();
289 Value value = info[2];
290
291 obj.DefineProperty(PropertyDescriptor::Value(name, value));
292}
293
294Value CreateObjectUsingMagic(const CallbackInfo& info) {
295 Env env = info.Env();

Callers

nothing calls this directly

Calls 2

DefinePropertyMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected