Merge ab2c449585ae457768a8449d877846fe7547f033 into 8807fedec55bc4dbdf7b4780d36bfc4b4fd6e5e2

This commit is contained in:
Renáta Hodován 2025-09-24 17:43:38 -04:00 committed by GitHub
commit 7c9573069f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3677,7 +3677,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));