Code Monkey home page Code Monkey logo

Comments (6)

CircleTan avatar CircleTan commented on May 26, 2024

from es5-shim.

ljharb avatar ljharb commented on May 26, 2024

Thanks, i should be able to get this fixed today.

from es5-shim.

ljharb avatar ljharb commented on May 26, 2024

@krzyko can you confirm that if you change the if ($Object.defineProperty) { line to if ($Object.defineProperty && supportsDescriptors) {, it fixes your issue?

from es5-shim.

ljharb avatar ljharb commented on May 26, 2024

I've verified that IE 8's test failures drop from "basically all of them" to "just 18" with this fix, so I'll go with it.

from es5-shim.

krzyko avatar krzyko commented on May 26, 2024

I've noticed that supportsDescriptors already tests for $Object.defineProperty so changing if ($Object.defineProperty) { to if (supportsDescriptors) { will simplify code a bit. But anyways, mentioned commit has fixed my issue. Thanks.

from es5-shim.

ljharb avatar ljharb commented on May 26, 2024

Very true :-) but this way will be a good reminder for me. Thanks for reporting!

from es5-shim.

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.