@@ -147,7 +147,7 @@ fn cmdCallback(
147147 input ,
148148 "shell.js" ,
149149 ) catch {
150- const except = ctx .try_catch .exception (ctx .alloc , ctx .js_env .* ) catch unreachable ;
150+ const except = ctx .try_catch .exception (ctx .alloc , ctx .js_env ) catch unreachable ;
151151 if (except ) | msg | {
152152 defer ctx .alloc .free (msg );
153153 printStdout ("\x1b [38;5;242mUncaught {s}\x1b [0m\n " , .{msg });
@@ -156,7 +156,7 @@ fn cmdCallback(
156156 };
157157
158158 // JS print result
159- const s = res .toString (ctx .alloc , ctx .js_env .* ) catch unreachable ;
159+ const s = res .toString (ctx .alloc , ctx .js_env ) catch unreachable ;
160160 defer ctx .alloc .free (s );
161161 if (std .mem .eql (u8 , s , "undefined" )) {
162162 printStdout ("<- \x1b [38;5;242m{s}\x1b [0m\n " , .{s });
@@ -191,7 +191,7 @@ pub fn shellExec(
191191
192192 // JS try cache
193193 var try_catch : public.TryCatch = undefined ;
194- try_catch .init (js_env .* );
194+ try_catch .init (js_env );
195195 defer try_catch .deinit ();
196196
197197 // create I/O contexts and callbacks
@@ -226,7 +226,7 @@ pub fn shellExec(
226226 while (true ) {
227227 try loop .io .run_for_ns (10 * std .time .ns_per_ms );
228228 if (loop .cbk_error ) {
229- if (try try_catch .exception (alloc , js_env .* )) | msg | {
229+ if (try try_catch .exception (alloc , js_env )) | msg | {
230230 defer alloc .free (msg );
231231 printStdout ("\x1b [38;5;242mUncaught {s}\x1b [0m\n " , .{msg });
232232 }
0 commit comments