Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update doc/api/esm.md
Co-authored-by: Derek Lewis <DerekNonGeneric@inf.is>
  • Loading branch information
bmeck and Derek Lewis authored May 18, 2020
commit d2c1e519334c3a8ae829453521e4009557b5e962
4 changes: 2 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -1209,8 +1209,8 @@ of the following:
| `'module'` | Load a standard JavaScript module (ES module) | array buffer, string, or typed array |
| `'wasm'` | Load a WebAssembly module | array buffer, or typed array |

For text based formats like `'json'` or `'module'` if the source value is not a
string it will be converted to a string using [`util.TextDecoder`][].
Note: If the source value of a text-based format (i.e., `'json'`, `'module'`) is not a
string, it will be converted to a string using [`util.TextDecoder`][].
Comment thread
bmeck marked this conversation as resolved.
Resolved

Note: `Buffer` is a form of typed array.

Expand Down