Code Monkey home page Code Monkey logo

Comments (4)

getify avatar getify commented on May 18, 2024

I am open to it, but we'd want to test all of ES5's features and not just some. I wasn't sure if people would really find value in such things or not.

from es-feature-tests.

shmuelie avatar shmuelie commented on May 18, 2024

I'm looking to do was you suggest (write in ES6 and compile down) but go down to ES3 if needed.

from es-feature-tests.

getify avatar getify commented on May 18, 2024

Babel/Traceur go to ES5, and then es5-shim can patch a pre-ES5 environment to be up to ES5 standards.

So the only thing that doesn't cover is if you want to write ES5 syntax (like the getters/setters). That's not really transpilable though, as far as I'm aware, so I don't know how much value having such a test result would add to your scenario.

Ultimately, I'd recommend writing ES6, transpiling to ES5 (which doesn't use any of those ES5 only syntaxes), and using es5-shim to patch up pre-ES5 browsers. That should cover your like 99% use case.

from es-feature-tests.

shmuelie avatar shmuelie commented on May 18, 2024

I think that may just be best. I think a basic ES5 test would still be usefull, so that you know if you should load the shim or not.

from es-feature-tests.

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.