| 307 | } |
| 308 | |
| 309 | void 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 | |
| 326 | void MetadataNode::FieldAccessorGetterCallback(Local<Name> property, const PropertyCallbackInfo<Value>& info) { |
| 327 | try { |
nothing calls this directly
no test coverage detected