Merge ab2c449585ae457768a8449d877846fe7547f033 into d73189dd5a582c19c565774bd56fed4e72d33c99

This commit is contained in:
Renáta Hodován 2026-05-22 14:40:50 +08:00 committed by GitHub
commit 0a5bba2194
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3691,7 +3691,8 @@ static JSValue js_worker_ctor(JSContext *ctx, JSValueConst new_target,
/* module name */
filename = JS_ToCString(ctx, argv[0]);
if (!filename)
struct stat buffer;
if (!filename || stat(filename, &buffer) != 0)
goto fail;
args = malloc(sizeof(*args));