File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,13 @@ impl CallbackHandle {
111111 }
112112}
113113
114+ type EventLoopClosure = Rc < RefCell < Option < Closure < dyn FnMut ( ) > > > > ;
115+
114116#[ wasm_bindgen( skip_typescript) ]
115117pub struct Repl {
116118 repl : Rc < RefCell < quiver_environment:: Repl > > ,
117119 running : Rc < RefCell < bool > > ,
118- event_loop_closure : Rc < RefCell < Option < Closure < dyn FnMut ( ) > > > > ,
120+ event_loop_closure : EventLoopClosure ,
119121 pending_callbacks : Rc < RefCell < HashMap < u64 , CallbackHandle > > > ,
120122}
121123
@@ -405,7 +407,7 @@ impl Repl {
405407 RequestResult :: Result ( Ok ( ( value, heap) ) ) => {
406408 callback. invoke ( JsResult :: ok ( Some ( JsEvaluationResult {
407409 value : value. into ( ) ,
408- heap : heap ,
410+ heap,
409411 } ) ) ) ;
410412 }
411413 RequestResult :: Result ( Err ( e) ) => {
You can’t perform that action at this time.
0 commit comments