Skip to content

Commit

Permalink
Rename __argv to execArgv
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Dec 3, 2024
1 parent 858fc36 commit 92577d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 92577d3

Please sign in to comment.