File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,16 +170,16 @@ pub fn runScript(
170170
171171 // local try catch
172172 var try_catch : public.TryCatch = undefined ;
173- try_catch .init (js_env .* );
173+ try_catch .init (js_env );
174174 defer try_catch .deinit ();
175175
176176 // check result
177177 _ = js_env .execWait (script , name ) catch | err | {
178- if (try try_catch .exception (alloc , js_env .* )) | msg | {
178+ if (try try_catch .exception (alloc , js_env )) | msg | {
179179 defer alloc .free (msg );
180180 std .log .err ("script {s} error: {s}\n " , .{ name , msg });
181181 }
182- if (try try_catch .stack (alloc , js_env .* )) | msg | {
182+ if (try try_catch .stack (alloc , js_env )) | msg | {
183183 defer alloc .free (msg );
184184 std .log .err ("script {s} stack: {s}\n " , .{ name , msg });
185185 }
You can’t perform that action at this time.
0 commit comments