mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
lib: fix typo in internal/modules/esm/module_job.js
PR-URL: https://github.com/nodejs/node/pull/37773 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Pooja D P <Pooja.D.P@ibm.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
This commit is contained in:
1 parent
a27534e883
commit
13ac680cdb
1 file changed
+1
-1
@@ -118,7 +118,7 @@ class ModuleJob {
|
||||
const importStatement = splitStack[1];
|
||||
// TODO(@ctavan): The original error stack only provides the single
|
||||
// line which causes the error. For multi-line import statements we
|
||||
// cannot generate an equivalent object descructuring assignment by
|
||||
// cannot generate an equivalent object destructuring assignment by
|
||||
// just parsing the error stack.
|
||||
const oneLineNamedImports = StringPrototypeMatch(importStatement, /{.*}/);
|
||||
const destructuringAssignment = oneLineNamedImports &&
|
||||
|
||||
Reference in new issue
Block a user