* gjs_context_get_native_context: * * Returns a pointer to the underlying native context. For SpiderMonkey, this * is a JSContext * */
| 1257 | * is a JSContext * |
| 1258 | */ |
| 1259 | void* gjs_context_get_native_context(GjsContext* self) { |
| 1260 | g_return_val_if_fail(GJS_IS_CONTEXT(self), nullptr); |
| 1261 | GjsContextPrivate* gjs = GjsContextPrivate::from_object(self); |
| 1262 | return gjs->context(); |
| 1263 | } |
| 1264 | |
| 1265 | static inline bool result_to_c(GErrorResult<> result, GError** error_out) { |
| 1266 | if (result.isOk()) |