src/developer/shell/lib/fidl.cc
JSValue Close(JSContext* ctx, JSValueConst this_val, int argc, JSValueConst* /*argv*/) {
  if (argc != 0) {
    return JS_ThrowSyntaxError(ctx,
                               "Wrong number of arguments to fidl.decodeResponse(), "
                               "was %d, expected 0",
                               argc);
  }
  auto loader =
      reinterpret_cast<fidl_codec::LibraryLoader*>(JS_GetOpaque(this_val, fidl_class_id_));
  if (loader == nullptr) {
    return JS_EXCEPTION;
  }
  delete loader;
  JS_SetOpaque(this_val, nullptr);
  return JS_UNDEFINED;
}
// Closes the library passed in via this_val.
Closes the library passed in via this_val.
Closes the library passed in via this_val .
JSValue Close(JSContext* ctx, JSValueConst this_val, int argc, JSValueConst* ) {
  if (argc != 0) {
    return JS_ThrowSyntaxError(ctx,
                               "Wrong number of arguments to fidl.decodeResponse(), "
                               "was %d, expected 0",
                               argc);
  }
  auto loader =
      reinterpret_cast<fidl_codec::LibraryLoader*>(JS_GetOpaque(this_val, fidl_class_id_));
  if (loader == nullptr) {
    return JS_EXCEPTION;
  }
  delete loader;
  JS_SetOpaque(this_val, nullptr);
  return JS_UNDEFINED;
}
JSValue Close ( JSContext * ctx , JSValueConst this_val , int argc , JSValueConst * ) { if ( argc != 0 ) { return JS_ThrowSyntaxError ( ctx , " " " " , argc ) ; } auto loader = reinterpret_cast < fidl_codec :: LibraryLoader * > ( JS_GetOpaque ( this_val , fidl_class_id_ ) ) ; if ( loader == nullptr ) { return JS_EXCEPTION ; } delete loader ; JS_SetOpaque ( this_val , nullptr ) ; return JS_UNDEFINED ; }
Closes the library passed in via this_val.
Closes the library passed in via this_val .
/*argv*/