(&self, name: InternedString<'gc>)
| 33 | } |
| 34 | |
| 35 | pub fn get_export(&self, name: InternedString<'gc>) -> Option<Value<'gc>> { |
| 36 | match self { |
| 37 | ModuleKind::Script { exports, .. } => exports.get(&name).copied(), |
| 38 | ModuleKind::Native { exports, .. } => exports.get(&name).copied(), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | pub fn add_export(&mut self, name: InternedString<'gc>, value: Value<'gc>) { |
| 43 | match self { |
no test coverage detected