mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
`catch` and `finally` methods on %Promise.prototype% looks up the `then` property of the instance, making it at risk of prototype pollution. PR-URL: https://github.com/nodejs/node/pull/38650 Refs: https://tc39.es/ecma262/#sec-promise.prototype.catch Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
10 lines
562 B
Plaintext
10 lines
562 B
Plaintext
file:///*/test/message/esm_display_syntax_error_import.mjs:5
|
|
notfound
|
|
^^^^^^^^
|
|
SyntaxError: The requested module '../fixtures/es-module-loaders/module-named-exports.mjs' does not provide an export named 'notfound'
|
|
at ModuleJob._instantiate (node:internal/modules/esm/module_job:*:*)
|
|
at async ModuleJob.run (node:internal/modules/esm/module_job:*:*)
|
|
at async Loader.import (node:internal/modules/esm/loader:*:*)
|
|
at async Object.loadESM (node:internal/process/esm_loader:*:*)
|
|
at async handleMainPromise (node:internal/modules/run_main:*:*)
|