MCPcopy Create free account
hub / github.com/nodejs/nan / HandleErrorCallback

Method HandleErrorCallback

nan.h:2101–2108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2099 }
2100
2101 virtual void HandleErrorCallback() {
2102 HandleScope scope;
2103
2104 v8::Local<v8::Value> argv[] = {
2105 v8::Exception::Error(New<v8::String>(ErrorMessage()).ToLocalChecked())
2106 };
2107 callback->Call(1, argv, async_resource);
2108 }
2109
2110 void SetErrorMessage(const char *msg) {
2111 delete[] errmsg_;

Callers

nothing calls this directly

Calls 2

ToLocalCheckedMethod · 0.80
CallMethod · 0.80

Tested by

no test coverage detected