esm: phase two of new esm implementation · nodejs/node@b1094db (original) (raw)

`@@ -844,6 +844,18 @@ provided.

`

844

844

`` Encoding provided to TextDecoder() API was not one of the

``

845

845

`[WHATWG Supported Encodings][].

`

846

846

``

``

847

`+

`

``

848

`+

ERR_ENTRY_TYPE_MISMATCH

`

``

849

+

``

850

`+

Stability: 1 - Experimental

`

``

851

+

``

852

`` +

The --entry-type=commonjs flag was used to attempt to execute an .mjs file

``

``

853

`` +

or a .js file where the nearest parent package.json contains

``

``

854

`` +

"type": "module"; or

``

``

855

`` +

the --entry-type=module flag was used to attempt to execute a .cjs file or

``

``

856

`` +

a .js file where the nearest parent package.json either lacks a "type"

``

``

857

`` +

field or contains "type": "commonjs".

``

``

858

+

847

859

`

`

848

860

`### ERR_FALSY_VALUE_REJECTION

`

849

861

``

`@@ -1267,6 +1279,11 @@ An invalid or unexpected value was passed in an options object.

`

1267

1279

``

1268

1280

`An invalid or unknown file encoding was passed.

`

1269

1281

``

``

1282

`+

`

``

1283

`+

ERR_INVALID_PACKAGE_CONFIG

`

``

1284

+

``

1285

`` +

An invalid package.json file was found which failed parsing.

``

``

1286

+

1270

1287

`

`

1271

1288

`### ERR_INVALID_PERFORMANCE_MARK

`

1272

1289

``

`@@ -1440,7 +1457,7 @@ strict compliance with the API specification (which in some cases may accept

`

1440

1457

``

1441

1458

`> Stability: 1 - Experimental

`

1442

1459

``

1443

``

`` -

An ES6 module loader hook specified format: 'dynamic' but did not provide

``

``

1460

`` +

An ES Module loader hook specified format: 'dynamic' but did not provide

``

1444

1461

`` a dynamicInstantiate hook.

``

1445

1462

``

1446

1463

`

`

`` @@ -1449,26 +1466,19 @@ a dynamicInstantiate hook.

``

1449

1466

`` A MessagePort was found in the object passed to a postMessage() call,

``

1450

1467

`` but not provided in the transferList for that call.

``

1451

1468

``

1452

``

`-

`

1453

``

`-

ERR_MISSING_MODULE

`

1454

``

-

1455

``

`-

Stability: 1 - Experimental

`

1456

``

-

1457

``

`-

An ES6 module could not be resolved.

`

1458

``

-

1459

1469

`

`

1460

1470

`### ERR_MISSING_PLATFORM_FOR_WORKER

`

1461

1471

``

1462

1472

`The V8 platform used by this instance of Node.js does not support creating

`

1463

1473

`Workers. This is caused by lack of embedder support for Workers. In particular,

`

1464

1474

`this error will not occur with standard builds of Node.js.

`

1465

1475

``

1466

``

`-

`

1467

``

`-

ERR_MODULE_RESOLUTION_LEGACY

`

``

1476

`+

`

``

1477

`+

ERR_MODULE_NOT_FOUND

`

1468

1478

``

1469

1479

`> Stability: 1 - Experimental

`

1470

1480

``

1471

``

`-

A failure occurred resolving imports in an ES6 module.

`

``

1481

`+

An ES Module could not be resolved.

`

1472

1482

``

1473

1483

`

`

1474

1484

`### ERR_MULTIPLE_CALLBACK

`

`@@ -1555,7 +1565,7 @@ A given value is out of the accepted range.

`

1555

1565

``

1556

1566

`> Stability: 1 - Experimental

`

1557

1567

``

1558

``

`` -

An attempt was made to require() an ES6 module.

``

``

1568

`` +

An attempt was made to require() an ES Module.

``

1559

1569

``

1560

1570

`

`

1561

1571

`### ERR_SCRIPT_EXECUTION_INTERRUPTED

`

`@@ -2220,10 +2230,17 @@ A non-specific HTTP/2 error has occurred.

`

2220

2230

`` Used in the repl in case the old history file is used and an error occurred

``

2221

2231

`while trying to read and parse it.

`

2222

2232

``

``

2233

`+

`

``

2234

`+

ERR_INVALID_REPL_TYPE

`

``

2235

+

``

2236

`+

Stability: 1 - Experimental

`

``

2237

+

``

2238

`` +

The --entry-type=... flag is not compatible with the Node.js REPL.

``

``

2239

+

2223

2240

`

`

2224

2241

`#### ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK

`

2225

2242

``

2226

``

`` -

Used when an ES6 module loader hook specifies format: 'dynamic' but does

``

``

2243

`` +

Used when an ES Module loader hook specifies format: 'dynamic' but does

``

2227

2244

`` not provide a dynamicInstantiate hook.

``

2228

2245

``

2229

2246

`

`

`@@ -2250,7 +2267,6 @@ size.

`

2250

2267

`` This Error is thrown when a read is attempted on a TTY WriteStream,

``

2251

2268

`` such as process.stdout.on('data').

``

2252

2269

``

2253

``

-

2254

2270

`` ['uncaughtException']: process.html#process_event_uncaughtexception

``

2255

2271

`` [--force-fips]: cli.html#cli_force_fips

``

2256

2272

`` [Class: assert.AssertionError]: assert.html#assert_class_assert_assertionerror

``

`` @@ -2293,7 +2309,7 @@ such as process.stdout.on('data').

``

2293

2309

`` [subprocess.kill()]: child_process.html#child_process_subprocess_kill_signal

``

2294

2310

`` [subprocess.send()]: child_process.html#child_process_subprocess_send_message_sendhandle_options_callback

``

2295

2311

`` [zlib]: zlib.html

``

2296

``

`-

`

``

2312

`+

`

2297

2313

`[ICU]: intl.html#intl_internationalization_support

`

2298

2314

`[Node.js Error Codes]: #nodejs-error-codes

`

2299

2315

`[V8's stack trace API]: https://github.com/v8/v8/wiki/Stack-Trace-API

`