Update core.js

Fixed a compiler issue encountered when sealed classes are optimized.