| 308 | // Functions |
| 309 | |
| 310 | auto func_instance(v8::Local<v8::Function> function) -> v8::Local<v8::Object> { |
| 311 | auto v8_function = v8::Utils::OpenHandle(*function); |
| 312 | auto v8_func = v8::internal::Handle<v8::internal::WasmExportedFunction>::cast(v8_function); |
| 313 | auto v8_instance = object_handle(v8::internal::JSObject::cast(v8_func->instance())); |
| 314 | return v8::Utils::ToLocal(v8_instance); |
| 315 | } |
| 316 | |
| 317 | |
| 318 | // Globals |
nothing calls this directly
no test coverage detected