File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 707
707
"706" : " Invariant: static responses cannot be streamed %s" ,
708
708
"707" : " Invariant app-page handler received invalid cache entry %s" ,
709
709
"708" : " Failed to persist Chrome DevTools workspace UUID. The Chrome DevTools Workspace needs to be reconnected after the next page reload." ,
710
- "709" : " `rspack.getModuleNamedExports` is not supported by the wasm bindings."
710
+ "709" : " `rspack.getModuleNamedExports` is not supported by the wasm bindings." ,
711
+ "710" : " cannot run loadNative when `NEXT_TEST_WASM` is set"
711
712
}
Original file line number Diff line number Diff line change @@ -1077,6 +1077,7 @@ function bindingToApi(
1077
1077
}
1078
1078
}
1079
1079
1080
+ // helper for tryLoadWasmWithFallback / loadBindings.
1080
1081
async function loadWasm ( importPath = '' ) {
1081
1082
let attempts = [ ]
1082
1083
let rawBindings : RawWasmBindings | null = null
@@ -1085,7 +1086,7 @@ async function loadWasm(importPath = '') {
1085
1086
// unstable and subject to change.
1086
1087
const testWasmDir = process . env . NEXT_TEST_WASM_DIR
1087
1088
1088
- if ( testWasmDir != null ) {
1089
+ if ( testWasmDir ) {
1089
1090
// assume these are node.js bindings and don't need a call to `.default()`
1090
1091
rawBindings = await import (
1091
1092
pathToFileURL ( path . join ( testWasmDir , 'wasm.js' ) ) . toString ( )
You can’t perform that action at this time.
0 commit comments