mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-02-24 00:37:43 +11:00
Fix throwToEscapeEventLoop function
This commit is contained in:
parent
54b4074369
commit
7dabad4d71
2 changed files with 3 additions and 3 deletions
|
@ -69,9 +69,9 @@ struct EventLoopRunner<T> {
|
||||||
event_handler: Box<dyn FnMut(Event<T>, &mut ControlFlow)>,
|
event_handler: Box<dyn FnMut(Event<T>, &mut ControlFlow)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen(module = "/src/platform_impl/web_sys/util.js")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#[wasm_bindgen(module = "/src/platform_impl/web_sys/util.js", js_name = "throwToEscapeEventLoop")]
|
#[wasm_bindgen(js_name = "throwToEscapeEventLoop")]
|
||||||
fn throw_to_escape_event_loop();
|
fn throw_to_escape_event_loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
function throwToEscapeEventLoop() {
|
export function throwToEscapeEventLoop() {
|
||||||
throw "Using exceptions for control flow, don't mind me. This isn't actually an error!";
|
throw "Using exceptions for control flow, don't mind me. This isn't actually an error!";
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue