File tree 5 files changed +1
-27
lines changed
5 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 5
5
6
6
# The wasm files are stored as base64 strings in the corresponding .js files
7
7
lib /llhttp /llhttp_simd.wasm
8
- lib /llhttp /llhttp.wasm
9
8
10
9
! types /** /*
11
10
! index.d.ts
Original file line number Diff line number Diff line change @@ -79,15 +79,6 @@ module.exports = fs.readFileSync(require.resolve('./${basename(path)}'))
79
79
` )
80
80
}
81
81
82
- // Build wasm binary
83
- execSync ( `${ WASM_CC } ${ WASM_CFLAGS } ${ WASM_LDFLAGS } \
84
- ${ join ( WASM_SRC , 'src' ) } /*.c \
85
- -I${ join ( WASM_SRC , 'include' ) } \
86
- -o ${ join ( WASM_OUT , 'llhttp.wasm' ) } \
87
- ${ WASM_LDLIBS } ` , { stdio : 'inherit' } )
88
-
89
- writeWasmChunk ( 'llhttp.wasm' , 'llhttp-wasm.js' )
90
-
91
82
// Build wasm simd binary
92
83
execSync ( `${ WASM_CC } ${ WASM_CFLAGS } -msimd128 ${ WASM_LDFLAGS } \
93
84
${ join ( WASM_SRC , 'src' ) } /*.c \
Original file line number Diff line number Diff line change @@ -74,20 +74,7 @@ function removeAllListeners (obj) {
74
74
}
75
75
76
76
async function lazyllhttp ( ) {
77
- const llhttpWasmData = process . env . JEST_WORKER_ID ? require ( '../llhttp/llhttp-wasm.js' ) : undefined
78
-
79
- let mod
80
- try {
81
- mod = await WebAssembly . compile ( require ( '../llhttp/llhttp_simd-wasm.js' ) )
82
- } catch ( e ) {
83
- /* istanbul ignore next */
84
-
85
- // We could check if the error was caused by the simd option not
86
- // being enabled, but the occurring of this other error
87
- // * https://github.com/emscripten-core/emscripten/issues/11495
88
- // got me to remove that check to avoid breaking Node 12.
89
- mod = await WebAssembly . compile ( llhttpWasmData || require ( '../llhttp/llhttp-wasm.js' ) )
90
- }
77
+ const mod = await WebAssembly . compile ( require ( '../llhttp/llhttp_simd-wasm.js' ) )
91
78
92
79
return await WebAssembly . instantiate ( mod , {
93
80
env : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments