diff options
Diffstat (limited to 'content/handlers/javascript/duktape/Console.bnd')
-rw-r--r-- | content/handlers/javascript/duktape/Console.bnd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/javascript/duktape/Console.bnd b/content/handlers/javascript/duktape/Console.bnd index 3de875a81..89d13cfad 100644 --- a/content/handlers/javascript/duktape/Console.bnd +++ b/content/handlers/javascript/duktape/Console.bnd @@ -51,7 +51,7 @@ write_log_entry(duk_context *ctx, unsigned int group, browser_window_console_fla duk_size_t msglen; const char *msg = duk_safe_to_lstring(ctx, 0, &msglen); - if (priv_win == NULL || + if (priv_win == NULL || priv_win->win == NULL || priv_win->closed_down == true || browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE, msg, msglen, flags) != NSERROR_OK) { @@ -182,7 +182,7 @@ method Console::timeEnd() duk_del_prop(ctx, 0); duk_push_string(ctx, "Timer elapsed: "); duk_insert(ctx, 0); - duk_push_sprintf(ctx, "%lu ms", (duk_uint_t)(time_ms - old_time_ms)); + duk_push_sprintf(ctx, "%u ms", (duk_uint_t)(time_ms - old_time_ms)); write_log_entry(ctx, priv->group, BW_CS_FLAG_LEVEL_INFO); return 0; %} |