Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport #3499 to v6.x #3528

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 11 additions & 1 deletion build/wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ const writeWasmChunk = (path, dest) => {

const { Buffer } = require('node:buffer')

module.exports = Buffer.from('${base64}', 'base64')
const wasmBase64 = '${base64}'

let wasmBuffer

Object.defineProperty(module, 'exports', {
get: () => {
return wasmBuffer
? wasmBuffer
: (wasmBuffer = Buffer.from(wasmBase64, 'base64'))
}
})
`)
}

Expand Down
12 changes: 11 additions & 1 deletion lib/llhttp/llhttp-wasm.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion lib/llhttp/llhttp_simd-wasm.js

Large diffs are not rendered by default.

Loading