Hacker News new | ask | show | jobs
by Havvy 4020 days ago
instanceof cannot be determined statically because I can do...

    const a = {};
    Object.setPrototypeOf(a, SomethingElse);
1 comments

really? even on a frozen object?

Remember I have said const PLUS Object.freeze() Both are needed to get the true immutable effect.