Skip to content

Commit ae550d4

Browse files
GeoffreyBoothclaude
andcommitted
Update source map snapshot for synchronous entry point evaluation
An uncaught error thrown by an ES module entry point now escapes through ModuleJobSync's evaluateSync() instead of the async triggerUncaughtException path in run_main, so the internal frame shown above the error changes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent b43ba8c commit ae550d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/fixtures/source-map/output/source_map_assert_no_source_map.snapshot‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
node:internal/modules/run_main:<line>
2-
triggerUncaughtException(
3-
^
1+
node:internal/modules/esm/module_job:<line>
2+
return this.module.evaluateSync();
3+
^
44

55
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
66

0 commit comments

Comments
 (0)