Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When precompiling loaded files, set top-level module. Fixes #4416.
The logic that precompiles a 'load'ed or 'require'd file did not ever call setModule or determineModule on the root scope for that script body. This caused module definitions to blow up, since they had no containing scope in which to define the new module.
- Loading branch information
Showing
1 changed file
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters