chore: update WebKit to ESM bytecode cache preview build

Use WebKit preview-pr-132-c6592bfb which includes the ESM bytecode
cache hooks (hasCachedModuleMetadata, createModuleRecordFromCache)
cherry-picked onto the latest WebKit main.

Also add 'override' keywords to the SourceProvider methods now that
the base class has the virtual methods.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Bot
2026-01-09 20:58:48 +00:00
parent 9f49370687
commit b9eb82b378
2 changed files with 3 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ option(WEBKIT_VERSION "The version of WebKit to use")
option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading")
if(NOT WEBKIT_VERSION)
set(WEBKIT_VERSION 1d0216219a3c52cb85195f48f19ba7d5db747ff7)
set(WEBKIT_VERSION preview-pr-132-c6592bfb)
endif()
string(SUBSTRING ${WEBKIT_VERSION} 0 16 WEBKIT_VERSION_PREFIX)

View File

@@ -91,16 +91,14 @@ public:
};
// ESM bytecode cache support
// TODO: Add 'override' once oven-sh/WebKit adds virtual methods to
// JSC::SourceProvider for hasCachedModuleMetadata/createModuleRecordFromCache
bool hasCachedModuleMetadata() const
bool hasCachedModuleMetadata() const override
{
return m_cachedModuleMetadata.has_value();
}
JSC::JSModuleRecord* createModuleRecordFromCache(
JSC::JSGlobalObject* globalObject,
const JSC::Identifier& moduleKey);
const JSC::Identifier& moduleKey) override;
void updateCache(const UnlinkedFunctionExecutable* executable, const SourceCode&, CodeSpecializationKind kind, const UnlinkedFunctionCodeBlock* codeBlock);
void cacheBytecode(const BytecodeCacheGenerator& generator);