Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Commit 4629143

Browse files
guybedfordMylesBorinsjdalton
authored andcommitted
esm: minimal kernel
Refs: nodejs/modules#180 PR-URL: #6 PR-URL: #12 Co-authored-by: Myles Borins <[email protected]> Co-authored-by: John-David Dalton <[email protected]>
1 parent 107c95d commit 4629143

File tree

82 files changed

+321
-849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+321
-849
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ module.exports = {
3939
files: [
4040
'doc/api/esm.md',
4141
'*.mjs',
42-
'test/es-module/test-esm-example-loader.js',
4342
],
4443
parserOptions: { sourceType: 'module' },
4544
},

doc/api/cli.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,6 @@ default) is not firewall-protected.**
268268

269269
See the [debugging security implications][] section for more information.
270270

271-
### `--loader=file`
272-
<!-- YAML
273-
added: v9.0.0
274-
-->
275-
276-
Specify the `file` of the custom [experimental ECMAScript Module][] loader.
277-
278271
### `--max-http-header-size=size`
279272
<!-- YAML
280273
added: v11.6.0
@@ -711,7 +704,6 @@ Node.js options that are allowed are:
711704
- `--inspect`
712705
- `--inspect-brk`
713706
- `--inspect-port`
714-
- `--loader`
715707
- `--max-http-header-size`
716708
- `--napi-modules`
717709
- `--no-deprecation`
@@ -899,7 +891,6 @@ greater than `4` (its current default value). For more information, see the
899891
[debugger]: debugger.html
900892
[debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications
901893
[emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor
902-
[experimental ECMAScript Module]: esm.html#esm_loader_hooks
903894
[libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html
904895
[remote code execution]: https://www.owasp.org/index.php/Code_Injection
905896
[secureProtocol]: tls.html#tls_tls_createsecurecontext_options

doc/api/errors.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,26 +1449,19 @@ a `dynamicInstantiate` hook.
14491449
A `MessagePort` was found in the object passed to a `postMessage()` call,
14501450
but not provided in the `transferList` for that call.
14511451

1452-
<a id="ERR_MISSING_MODULE"></a>
1453-
### ERR_MISSING_MODULE
1454-
1455-
> Stability: 1 - Experimental
1456-
1457-
An [ES6 module][] could not be resolved.
1458-
14591452
<a id="ERR_MISSING_PLATFORM_FOR_WORKER"></a>
14601453
### ERR_MISSING_PLATFORM_FOR_WORKER
14611454

14621455
The V8 platform used by this instance of Node.js does not support creating
14631456
Workers. This is caused by lack of embedder support for Workers. In particular,
14641457
this error will not occur with standard builds of Node.js.
14651458

1466-
<a id="ERR_MODULE_RESOLUTION_LEGACY"></a>
1467-
### ERR_MODULE_RESOLUTION_LEGACY
1459+
<a id="ERR_MODULE_NOT_FOUND"></a>
1460+
### ERR_MODULE_NOT_FOUND
14681461

14691462
> Stability: 1 - Experimental
14701463
1471-
A failure occurred resolving imports in an [ES6 module][].
1464+
An [ESM module][] could not be resolved.
14721465

14731466
<a id="ERR_MULTIPLE_CALLBACK"></a>
14741467
### ERR_MULTIPLE_CALLBACK

0 commit comments

Comments
 (0)