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

Method ok

nan.h:3129–3135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3127 }
3128
3129 inline void ok(bool isOk, const char *msg = NULL) {
3130 HandleScope scope;
3131 v8::Local<v8::Value> args[2];
3132 args[0] = New(isOk);
3133 if (msg) args[1] = New(msg).ToLocalChecked();
3134 Call("ok", New(t_), msg ? 2 : 1, args);
3135 }
3136
3137 inline void pass(const char * msg = NULL) {
3138 HandleScope scope;

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
NewFunction · 0.70
CallFunction · 0.70

Tested by

no test coverage detected