mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 13:48:11 +08:00
parent
012451d5f3
commit
ab2c449585
@ -3466,7 +3466,8 @@ static JSValue js_worker_ctor(JSContext *ctx, JSValueConst new_target,
|
|||||||
|
|
||||||
/* module name */
|
/* module name */
|
||||||
filename = JS_ToCString(ctx, argv[0]);
|
filename = JS_ToCString(ctx, argv[0]);
|
||||||
if (!filename)
|
struct stat buffer;
|
||||||
|
if (!filename || stat(filename, &buffer) != 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
args = malloc(sizeof(*args));
|
args = malloc(sizeof(*args));
|
||||||
|
Loading…
Reference in New Issue
Block a user