Skip to content

Commit 8e2cf5f

Browse files
committed
doc: change transformSource to load for error
1 parent 3cc41d2 commit 8e2cf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/translators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function assertBufferSource(body, allowString, hookName) {
9191

9292
function stringify(body) {
9393
if (typeof body === 'string') return body;
94-
assertBufferSource(body, false, 'transformSource');
94+
assertBufferSource(body, false, 'load');
9595
const { TextDecoder } = require('internal/encoding');
9696
DECODER = DECODER === null ? new TextDecoder() : DECODER;
9797
return DECODER.decode(body);

0 commit comments

Comments
 (0)