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

Method Maybe

nan.h:278–280  ·  view source on GitHub ↗

Allow implicit conversions from v8::Maybe to Nan::Maybe .

Source from the content-addressed store, hash-verified

276 (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
277 // Allow implicit conversions from v8::Maybe<T> to Nan::Maybe<T>.
278 Maybe(const v8::Maybe<T>& that) // NOLINT(runtime/explicit)
279 : has_value_(that.IsJust())
280 , value_(that.FromMaybe(T())) {}
281#endif
282
283 private:

Callers

nothing calls this directly

Calls 2

IsJustMethod · 0.80
FromMaybeMethod · 0.45

Tested by

no test coverage detected