Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -7495,6 +7495,11 @@ static JSValue js_bytecode_autoinit(JSContext *ctx, JSObject *p, JSAtom atom,
for (size_t i = 0; i < countof(args); i++)
JS_FreeValue(ctx, args[i]);
JS_FreeValue(ctx, fun);
if (JS_SetPrototypeInternal(ctx, result, ctx->function_proto,
/*throw_flag*/true) < 0) {
JS_FreeValue(ctx, result);
return JS_EXCEPTION;
}
return result;
}
}
Expand Down
6 changes: 0 additions & 6 deletions test262_errors.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
test262/test/built-ins/Array/fromAsync/builtin.js:24: Test262Error: Prototype of Array.fromAsync is Function.prototype Expected SameValue(«[object AsyncFunction]», «function () {
[native code]
}») to be true
test262/test/built-ins/Array/fromAsync/builtin.js:24: strict mode: Test262Error: Prototype of Array.fromAsync is Function.prototype Expected SameValue(«[object AsyncFunction]», «function () {
[native code]
}») to be true
test262/test/built-ins/AsyncFromSyncIteratorPrototype/next/iterator-result-poisoned-wrapper.js:64: TypeError: $DONE() not called
test262/test/built-ins/AsyncFromSyncIteratorPrototype/next/iterator-result-poisoned-wrapper.js:64: strict mode: TypeError: $DONE() not called
test262/test/built-ins/AsyncFromSyncIteratorPrototype/next/next-result-poisoned-wrapper.js:69: TypeError: $DONE() not called
Expand Down