diff options
author | 2022-02-24 19:09:55 -0800 | |
---|---|---|
committer | 2022-02-24 19:09:55 -0800 | |
commit | d1eba784b9d902ac6043c1b76e64382d43fbc261 (patch) | |
tree | b711a3f5624817496b0071721634dad8bdc50e4a /src/javascript/jsc/bindings/ZigSourceProvider.h | |
parent | ead77e074d0cfb3d170a243140cce564a4f287a5 (diff) | |
download | bun-d1eba784b9d902ac6043c1b76e64382d43fbc261.tar.gz bun-d1eba784b9d902ac6043c1b76e64382d43fbc261.tar.zst bun-d1eba784b9d902ac6043c1b76e64382d43fbc261.zip |
Add WASM modules but disable it for now
Diffstat (limited to 'src/javascript/jsc/bindings/ZigSourceProvider.h')
-rw-r--r-- | src/javascript/jsc/bindings/ZigSourceProvider.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/javascript/jsc/bindings/ZigSourceProvider.h b/src/javascript/jsc/bindings/ZigSourceProvider.h index 3a1a73b8f..fc584db6f 100644 --- a/src/javascript/jsc/bindings/ZigSourceProvider.h +++ b/src/javascript/jsc/bindings/ZigSourceProvider.h @@ -45,11 +45,11 @@ public: StringView source() const { return StringView(m_source.get()); } RefPtr<JSC::CachedBytecode> cachedBytecode() { - if (m_resolvedSource.bytecodecache_fd == 0) { - return nullptr; - } + // if (m_resolvedSource.bytecodecache_fd == 0) { + return nullptr; + // } - return m_cachedBytecode; + // return m_cachedBytecode; }; void updateCache(const UnlinkedFunctionExecutable* executable, const SourceCode&, @@ -73,6 +73,7 @@ private: m_resolvedSource = resolvedSource; m_hash = resolvedSource.hash; + getHash(); } |