mirror of
https://github.com/bellard/quickjs.git
synced 2026-03-31 12:18:01 +00:00
Merge ab2c449585ae457768a8449d877846fe7547f033 into d7ae12ae71dfd6ab2997527d295014a8996fa0f9
This commit is contained in:
commit
71a1293e57
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user