From 92577d33ff168c1f7cea0bd4c9f0ebaa1b826df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 2 Dec 2024 23:25:18 +0100 Subject: [PATCH] Rename __argv to execArgv --- qjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qjs.c b/qjs.c index fefd3d9..40275ba 100644 --- a/qjs.c +++ b/qjs.c @@ -178,7 +178,7 @@ static JSContext *JS_NewCustomContext(JSRuntime *rt) for(i = 0; i < qjs__argc; i++) { JS_SetPropertyUint32(ctx, args, i, JS_NewString(ctx, qjs__argv[i])); } - JS_SetPropertyStr(ctx, global, "__argv", args); + JS_SetPropertyStr(ctx, global, "execArgv", args); JS_SetPropertyStr(ctx, global, "argv0", JS_NewString(ctx, qjs__argv[0])); JSValue navigator_proto = JS_NewObject(ctx); JS_SetPropertyFunctionList(ctx, navigator_proto, navigator_proto_funcs, countof(navigator_proto_funcs));