Skip to content
Merged
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion src/utils/highlighter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ function isCodeBlock(node) {
export const highlighter = await createHighlighter({
// s390x machines throw memory issues on WASM builds
// https://github.com/nodejs/node/blob/c9acf345922bd758fbb3f16ee6256aa165260219/test/common/sea.js#L55
wasm: process.arch !== 's390x',
//
// riscv64 with sv39 has limited virtual memory space, where creating
// too many (>20) wasm memory instances fails.
// https://github.com/nodejs/node/pull/60591
wasm: !['riscv64', 's390x'].includes(process.arch),
Comment thread
kxxt marked this conversation as resolved.
Outdated
});

/**
Expand Down
Loading