Skip to content

Commit ac5dab9

Browse files
committed
Update doc/api/errors.md
1 parent 24afb0b commit ac5dab9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/errors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2970,11 +2970,11 @@ importing or calling `import.meta.resolve()` with either:
29702970
is not `file`.
29712971
* a [relative URL][] from a module whose URL scheme is not a [special scheme][].
29722972

2973-
```js
2973+
```mjs
29742974
try {
29752975
// Trying to import the package 'bare-specifier' from a `data:` URL module:
2976-
await import("data:text/javascript,import%22bare-specifier%22");
2977-
} catch(e) {
2976+
await import('data:text/javascript,import "bare-specifier"');
2977+
} catch (e) {
29782978
console.log(e.code); // ERR_UNSUPPORTED_RESOLVE_REQUEST
29792979
}
29802980
```

0 commit comments

Comments
 (0)