Skip to content

Commit de9922a

Browse files
committed
fix: enable wasm highlighter for s390x
The bug for s390x has been fixed.
1 parent 6960c15 commit de9922a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/utils/highlighter.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ function isCodeBlock(node) {
3737
}
3838

3939
export const highlighter = await createHighlighter({
40-
// s390x machines throw memory issues on WASM builds
41-
// https://github.com/nodejs/node/blob/c9acf345922bd758fbb3f16ee6256aa165260219/test/common/sea.js#L55
42-
//
4340
// riscv64 with sv39 has limited virtual memory space, where creating
4441
// too many (>20) wasm memory instances fails.
4542
// https://github.com/nodejs/node/pull/60591
46-
wasm: !['riscv64', 's390x'].includes(process.arch),
43+
wasm: process.arch !== 'riscv64',
4744
});
4845

4946
/**

0 commit comments

Comments
 (0)