MCPcopy Create free account
hub / github.com/GNOME/gjs / no_construct

Function no_construct

gjs/importer.cpp:792–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792GJS_JSAPI_RETURN_CONVENTION
793static bool no_construct(JSContext* cx, unsigned argc, JS::Value* vp) {
794 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
795 gjs_throw_abstract_constructor_error(cx, args);
796 return false;
797}
798
799GJS_JSAPI_RETURN_CONVENTION
800static JSObject* gjs_importer_define_proto(JSContext* cx) {

Callers

nothing calls this directly

Tested by

no test coverage detected