MCPcopy Create free account
hub / github.com/NativeScript/android / NullValueOfCallback

Method NullValueOfCallback

test-app/runtime/src/main/cpp/MetadataNode.cpp:309–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void MetadataNode::NullValueOfCallback(const FunctionCallbackInfo<Value>& args) {
310 try {
311 auto isolate = args.GetIsolate();
312 args.GetReturnValue().SetNull();
313 } catch (NativeScriptException& e) {
314 e.ReThrowToV8();
315 } catch (std::exception e) {
316 stringstream ss;
317 ss << "Error: c++ exception: " << e.what() << endl;
318 NativeScriptException nsEx(ss.str());
319 nsEx.ReThrowToV8();
320 } catch (...) {
321 NativeScriptException nsEx(std::string("Error: c++ exception!"));
322 nsEx.ReThrowToV8();
323 }
324}
325
326void MetadataNode::FieldAccessorGetterCallback(Local<Name> property, const PropertyCallbackInfo<Value>& info) {
327 try {

Callers

nothing calls this directly

Calls 5

SetNullMethod · 0.80
GetReturnValueMethod · 0.80
ReThrowToV8Method · 0.80
GetIsolateMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected