mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-27 13:48:45 +03:00
Merge ab2c449585ae457768a8449d877846fe7547f033 into 20d2b404af65edc5d66ee6f11a59f930ea3d1b88
This commit is contained in:
commit
8c11e13098
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user