mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-27 05:38:45 +03:00
Compare commits
2 Commits
7c9573069f
...
8c11e13098
Author | SHA1 | Date | |
---|---|---|---|
|
8c11e13098 | ||
|
ab2c449585 |
@ -3677,7 +3677,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…
x
Reference in New Issue
Block a user