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