Context::get_active_script_or_module
should return a script or module when using import in a generator
#3790
Labels
bug
Something isn't working
This is a pretty hard problem to fix for me at the moment, as I lack a lot of the internal knowledge around realms and call frames.
In the test262
test/language/expressions/dynamic-import/for-await-resolution-and-error-agen-yield.js
, the following code:Will load the call
load_imported_module
with the rightReferrer
(this file) and its path, but the second and thirdyield
will have aReferrer
ofRealm
which means they'll have no path associated with them and thus cannot import with a relative path.These tests were passing before but were a false positive as the path was always resolved from the root of the module loader (which in this case is the parent of the script being run).
The text was updated successfully, but these errors were encountered: