Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 910c1b00a197143b37d1ed46773e35070349483b https://github.com/WebKit/WebKit/commit/910c1b00a197143b37d1ed46773e35070349483b Author: Yusuke Suzuki <ysuz...@apple.com> Date: 2025-04-11 (Fri, 11 Apr 2025)
Changed paths: A JSTests/modules/exported-async-function-shape-check.js A JSTests/modules/exported-functions-check.js M Source/JavaScriptCore/runtime/JSModuleRecord.cpp Log Message: ----------- [JSC] `export async function` changes prototype to Function instead of AsyncFunction https://bugs.webkit.org/show_bug.cgi?id=291255 rdar://149083588 Reviewed by Keith Miller. Module's declaration insertion should appropriately materialize functions with their specific constructors. * JSTests/modules/exported-async-function-shape-check.js: Added. (export.async a): (async b): (async c): (Object.getPrototypeOf.a.Object.getPrototypeOf): (Object.getPrototypeOf): * JSTests/modules/exported-functions-check.js: Added. (shouldBe): (export.async exportedAsyncFunction): (export.async exportedAsyncGeneratorFunction): (export.exportedGeneratorFunction): (export.exportedFunction): (async nonExportedAsyncFunction): (async nonExportedAsyncGeneratorFunction): (nonExportedGeneratorFunction): (nonExportedFunction): * Source/JavaScriptCore/runtime/JSModuleRecord.cpp: (JSC::JSModuleRecord::instantiateDeclarations): Canonical link: https://commits.webkit.org/293602@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes