GithubHelp home page GithubHelp logo

Comments (3)

rtfeldman avatar rtfeldman commented on July 20, 2024

The development build definitely cannot work in IE8 because IE8 does not support Object.freeze. I can't think of any reason why the production build would not work, however.

I don't personally have the bandwidth to test this, but if someone else can verify this, I can update the README to note that the production build works in IE8.

from seamless-immutable.

lewisje avatar lewisje commented on July 20, 2024

The worse problem with IE8 is that Object.defineProperty only works on DOM nodes, and even a polyfill won't give IE8 the ability to make ordinary object members non-writable and non-deletable; to be more specific, you can make a sham version of Object.defineProperty that goes through the motions, so that you can load seamless-immutable without having it throw errors, but the objects it returns won't actually be immutable because there is no support in the engine for that.

es5-sham does exactly this, by the way, and something similar with Object.freeze and Object.isSealed and the like; it does have an admirable version of Object.isExtensible that tries its hardest to extend an object, just to see whether it can be done.

from seamless-immutable.

rtfeldman avatar rtfeldman commented on July 20, 2024

Thanks @lewisje - sounds like the resolution here is that it can't work.

from seamless-immutable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.