Skip to content

Commit e927df1

Browse files
committed
esm: change transformSource to load for error
1 parent 65087c0 commit e927df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/translators.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function assertBufferSource(body, allowString, hookName) {
116116
*/
117117
function stringify(body) {
118118
if (typeof body === 'string') { return body; }
119-
assertBufferSource(body, false, 'transformSource');
119+
assertBufferSource(body, false, 'load');
120120
const { TextDecoder } = require('internal/encoding');
121121
DECODER = DECODER === null ? new TextDecoder() : DECODER;
122122
return DECODER.decode(body);

0 commit comments

Comments
 (0)