From 8e2cf5f6a44eb3e76fa6b51bc5c4c8b9657a883d Mon Sep 17 00:00:00 2001 From: bmacnaughton Date: Sun, 29 Oct 2023 05:39:08 -0700 Subject: [PATCH] doc: change transformSource to load for error --- lib/internal/modules/esm/translators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/modules/esm/translators.js b/lib/internal/modules/esm/translators.js index b143cd0ad34d0e0..4986c69a6208284 100644 --- a/lib/internal/modules/esm/translators.js +++ b/lib/internal/modules/esm/translators.js @@ -91,7 +91,7 @@ function assertBufferSource(body, allowString, hookName) { function stringify(body) { if (typeof body === 'string') return body; - assertBufferSource(body, false, 'transformSource'); + assertBufferSource(body, false, 'load'); const { TextDecoder } = require('internal/encoding'); DECODER = DECODER === null ? new TextDecoder() : DECODER; return DECODER.decode(body);