Skip to content

Commit

Permalink
Update ecma262-biblio and pass referrer to HostLoadImportedModule (#390)
Browse files Browse the repository at this point in the history
HostImportModuleDynamically was replaced by HostLoadImportedModule and no
longer allows the referrer to be null. We should use evalContext's Realm
to do the import.

Reference: https://github.com/tc39/ecma262/pull/2905/files?diff=split&w=0
  • Loading branch information
ptomato authored Nov 2, 2023
1 parent 042f618 commit 4591fd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"watch": "npm run build -- --watch"
},
"devDependencies": {
"@tc39/ecma262-biblio": "=2.1.2336",
"@tc39/ecma262-biblio": "=2.1.2639",
"ecmarkup": "^15.0.0"
}
}
3 changes: 2 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ <h1>
1. Let _runningContext_ be the running execution context.
1. If _runningContext_ is not already suspended, suspend _runningContext_.
1. Push _evalContext_ onto the execution context stack; _evalContext_ is now the running execution context.
1. Perform HostImportModuleDynamically(*null*, _specifierString_, _innerCapability_).
1. Let _referrer_ be the Realm component of _evalContext_.
1. Perform HostLoadImportedModule(_referrer_, _specifierString_, ~empty~, _innerCapability_).
1. Suspend _evalContext_ and remove it from the execution context stack.
1. Resume the context that is now on the top of the execution context stack as the running execution context.
1. Let _steps_ be the steps of an ExportGetter function as described below.
Expand Down

0 comments on commit 4591fd7

Please sign in to comment.