| 250 | } |
| 251 | |
| 252 | GParamSpec* gjs_g_param_from_param(JSContext* cx, JS::HandleObject obj) { |
| 253 | if (!obj) |
| 254 | return nullptr; |
| 255 | |
| 256 | return param_value(cx, obj); |
| 257 | } |
| 258 | |
| 259 | bool gjs_typecheck_param(JSContext* cx, JS::HandleObject object, |
| 260 | GType expected_type, bool throw_error) { |
no test coverage detected