mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Fix throwToEscapeEventLoop function
This commit is contained in:
@@ -69,9 +69,9 @@ struct EventLoopRunner<T> {
|
||||
event_handler: Box<dyn FnMut(Event<T>, &mut ControlFlow)>,
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
#[wasm_bindgen(module = "/src/platform_impl/web_sys/util.js")]
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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!";
|
||||
}
|
||||
Reference in New Issue
Block a user