| 21 | } |
| 22 | |
| 23 | static void add_tasker_sink(maajs::FunctionType func) |
| 24 | { |
| 25 | auto ctx = std::make_unique<maajs::CallbackContext>(func, "TaskerSink"); |
| 26 | QuickJSRuntimeBridgeInterface::get(func.Env())->plugin_add_sink(QuickJSRuntimeBridgeInterface::Tasker, TaskerSink, ctx.get()); |
| 27 | ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx)); |
| 28 | } |
| 29 | |
| 30 | static void add_context_sink(maajs::FunctionType func) |
| 31 | { |
nothing calls this directly
no test coverage detected