| 80 | } |
| 81 | |
| 82 | GJS_JSAPI_RETURN_CONVENTION |
| 83 | static bool define_legacy_tostring(JSContext* cx, JS::HandleObject array) { |
| 84 | const GjsAtoms& atoms = GjsContextPrivate::atoms(cx); |
| 85 | return JS_DefineFunctionById(cx, array, atoms.to_string(), |
| 86 | instance_to_string_func, 1, 0); |
| 87 | } |
| 88 | |
| 89 | // fromString() function implementation |
| 90 | GJS_JSAPI_RETURN_CONVENTION |
no test coverage detected