Comments (4)
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.
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.
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.
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)
- letConst should be false in IE11 & Edge HOT 7
- add more tests to `testify`
- "getOwnPropertySymbols" typoed as "getOwnSymbolNames" HOT 2
- testify: add `--input` CLI flag (and `content` API option)
- reorganize internal data structure so there's a "testify" folder
- testify: add "exclude-test" option
- core: swap order of AMD and CommonJS clauses in UMD
- Update Babel Transformers mapping
- Possible bug in parser HOT 2
- Test results persist in localStorage after browser is updated HOT 7
- Module tests don't make sense HOT 4
- ES2016 testing? HOT 1
- Is the site down? HOT 2
- there should be a TypedArrayMethods test HOT 8
- Functionality (implementation details) of each future HOT 7
- More granular test results HOT 3
- Document supported browsers version HOT 1
- parsing: auto-switch to 'module' mode HOT 1
- How convert to babel/traceur options list to defer to browser's features HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es-feature-tests.