Skip to content

Commit 7fd27d8

Browse files
committed
doc: add note about not implementing bytes yet
1 parent 2da51d1 commit 7fd27d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/modules/esm/assert.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ const formatTypeMap = {
3232
'module': kImplicitTypeAttribute,
3333
'wasm': kImplicitTypeAttribute, // It's unclear whether the HTML spec will require an type attribute or not for Wasm; see https://github.com/WebAssembly/esm-integration/issues/42
3434
};
35+
// NOTE: Don't add bytes support yet as it requires Uint8Arrays backed by immutable ArrayBuffers, which V8 does not support yet.
36+
// see: https://github.com/nodejs/node/pull/62300#issuecomment-4079163816
3537

3638
function getFormatType(format) {
3739
if (format === 'text' && getOptionValue('--experimental-import-text')) {

0 commit comments

Comments
 (0)