MCPcopy Create free account
hub / github.com/Tencent/puerts / ToLocalChecked

Method ToLocalChecked

quickjs-build/include/v8.h:454–460  ·  view source on GitHub ↗

* Converts this MaybeLocal<> to a Local<>. If this MaybeLocal<> is empty, * V8 will crash the process. */

Source from the content-addressed store, hash-verified

452 * V8 will crash the process.
453 */
454 V8_INLINE Local<T> ToLocalChecked() {
455 if (IsEmpty()) {
456 std::cerr << "ToLocalChecked, Maybe value is Nothing." << std::endl;
457 abort();
458 }
459 return val_;
460 }
461
462 /**
463 * Converts this MaybeLocal<> to a Local<>, using a default value if this

Callers 7

RunMethod · 0.45
NewInstanceMethod · 0.45
InitPropertysMethod · 0.45
InitAccessorsMethod · 0.45
GetFunctionMethod · 0.45
HasInstanceMethod · 0.45
v8.hFile · 0.45

Calls 1

IsEmptyFunction · 0.50

Tested by

no test coverage detected