| 66 | } |
| 67 | |
| 68 | void Window::SetTimeout(const Napi::CallbackInfo& info) |
| 69 | { |
| 70 | auto function = Napi::Persistent(info[0].As<Napi::Function>()); |
| 71 | auto milliseconds = std::chrono::milliseconds{info[1].As<Napi::Number>().Int32Value()}; |
| 72 | |
| 73 | auto& window = *static_cast<Window*>(info.Data()); |
| 74 | |
| 75 | window.RecursiveWaitOrCall(std::make_shared<Napi::FunctionReference>(std::move(function)), std::chrono::system_clock::now() + milliseconds); |
| 76 | } |
| 77 | |
| 78 | Napi::Value Window::DecodeBase64(const Napi::CallbackInfo& info) |
| 79 | { |
nothing calls this directly
no test coverage detected