1
0
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:
Bryan Roe
2020-05-20 23:33:39 -07:00
parent 90ab77197a
commit f516ad9511

View File

@@ -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;