We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc41d2 commit 8e2cf5fCopy full SHA for 8e2cf5f
lib/internal/modules/esm/translators.js
@@ -91,7 +91,7 @@ function assertBufferSource(body, allowString, hookName) {
91
92
function stringify(body) {
93
if (typeof body === 'string') return body;
94
- assertBufferSource(body, false, 'transformSource');
+ assertBufferSource(body, false, 'load');
95
const { TextDecoder } = require('internal/encoding');
96
DECODER = DECODER === null ? new TextDecoder() : DECODER;
97
return DECODER.decode(body);
0 commit comments