unyt-org / datex-core-js-legacy

DATEX Core Library for JavaScript (legacy), fully implemented in TypeScript, used by the UIX Framework
https://unyt.org
3 stars 0 forks source link

StorageMaps are not correctly restored #38

Closed benStre closed 10 months ago

benStre commented 10 months ago

StorageMaps are currently recreated as StorageWeakMaps when loaded from DATEX. This happens because StorageMap extends StorageWeakMap and the DATEX type system always prioritizes the last created type definition. The order of the Type.std.StorageMap.setJSInterface and Type.std.StorageWeakMap.setJSInterface calls has to be switched.