mirror of
https://github.com/bellard/quickjs.git
synced 2024-12-12 09:44:33 +08:00
parent
012451d5f3
commit
ab2c449585
@ -3466,7 +3466,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…
Reference in New Issue
Block a user