MCPcopy Create free account
hub / github.com/Snapchat/Valdi / newObject

Method newObject

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:370–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368
369 return outputInfo;
370}
371
372Valdi::JSPropertyNameRef QuickJSJavaScriptContext::newPropertyName(const std::string_view& str) {
373 auto guard = _threadAccessChecker.guard();
374 JSAtom atom = JS_NewAtomLen(_context, str.data(), str.size());
375 return Valdi::JSPropertyNameRef(this, toValdiJSPropertyName(atom), true);
376}

Callers

nothing calls this directly

Calls 1

guardMethod · 0.80

Tested by

no test coverage detected