mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-02-05 03:03:34 +00:00
Updated console, so it will not throw exception if mode is logfile, and it cannot write
This commit is contained in:
@@ -667,7 +667,7 @@ duk_ret_t ILibDuktape_Polyfills_Console_log(duk_context *ctx)
|
||||
duk_push_string(ctx, tmp); // [writeFileSync][this][logPath][log]
|
||||
duk_push_object(ctx); // [writeFileSync][this][logPath][log][options]
|
||||
duk_push_string(ctx, "a"); duk_put_prop_string(ctx, -2, "flags");
|
||||
duk_call_method(ctx, 3);
|
||||
duk_pcall_method(ctx, 3);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user