Skip to content
Snippets Groups Projects
Commit 205b3571 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Make context defaults for with and height same as no-context ones.

ARE YOU HAPPY NOW CYAN?!?!
parent d457835c
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1711 passed
......@@ -369,6 +369,8 @@ static JSBool js_showbuf_ctx_constructor(JSContext *cx, uintN argc, jsval *argli
JS_ReportError(cx, "calloc failed");
return JS_FALSE;
}
p->height = INT_MAX;
p->width = INT_MAX;
if(!JS_SetPrivate(cx, obj, p)) {
JS_ReportError(cx, "JS_SetPrivate failed");
return JS_FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment