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

Function gjs_throw_constructor_error

gjs/jsapi-util.cpp:177–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void gjs_throw_constructor_error(JSContext* cx) {
178 gjs_throw(cx,
179 "Constructor called as normal method. Use 'new SomeObject()' not "
180 "'SomeObject()'");
181}
182
183void gjs_throw_abstract_constructor_error(JSContext* cx,
184 const JS::CallArgs& args) {

Callers 3

gjs_param_constructorFunction · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls 1

gjs_throwFunction · 0.85

Tested by

no test coverage detected