JS: Cache AMD modules

This commit is contained in:
Asger Feldthaus
2020-04-27 22:04:05 +01:00
parent aa2a49d189
commit e3440c1410

View File

@@ -290,6 +290,7 @@ private class AmdDependencyImport extends Import {
* ```
*/
class AmdModule extends Module {
cached
AmdModule() { strictcount(AmdModuleDefinition def | amdModuleTopLevel(def, this)) = 1 }
/** Gets the definition of this module. */