Update core.js

Fixed an issue encountered when exporting sealed classes that are
optimized.