rejigger comparison table

This commit is contained in:
Sebastian McKenzie 2014-10-08 15:43:43 +11:00
parent 915e8209cd
commit 302ff2397e

View File

@ -187,30 +187,28 @@ limitations in ES5 implementations.
## Comparison to other transpilers ## Comparison to other transpilers
| | 6to5 | Traceur | esnext | es6now | es6-transpiler | | | 6to5 | Traceur | esnext | es6now | es6-transpiler |
| -------------------------- | ---- | ------- | ------ | ------ | -------------- | | ---------------------------- | ---- | ------- | ------ | ------ | -------------- |
| No runtime | ✓ | | | | ✓ | | No runtime | ✓ | | | | ✓ |
| Source maps | ✓ | ✓ | ✓ | | ✓ | | Source maps | ✓ | ✓ | ✓ | | ✓ |
| **Compiler usage:** | | | | | | | No compiler global pollution | ✓ | | ✓ | | ✓ |
| No global pollution | ✓ | | ✓ | | ✓ | | Array comprehension | ✓ | ✓ | ✓ | | ✓ |
| **Syntax features:** | | | | | | | Arrow functions | ✓ | ✓ | ✓ | ✓ | ✓ |
| Array comprehension | ✓ | ✓ | ✓ | | ✓ | | Block binding | ✓ | ✓ | | | ✓ |
| Arrow functions | ✓ | ✓ | ✓ | ✓ | ✓ | | Classes | ✓ | ✓ | ✓ | ✓ | ✓ |
| Block binding | ✓ | ✓ | | | ✓ | | Computed property names | ✓ | ✓ | ✓ | ✓ | ✓ |
| Classes | ✓ | ✓ | ✓ | ✓ | ✓ | | Constants | ✓ | ✓ | | | ✓ |
| Computed property names | ✓ | ✓ | ✓ | ✓ | ✓ | | Default parameters | ✓ | ✓ | ✓ | ✓ | ✓ |
| Constants | ✓ | ✓ | | | ✓ | | Destructuring | ✓ | ✓ | ✓ | ✓ | ✓ |
| Default parameters | ✓ | ✓ | ✓ | ✓ | ✓ | | For-of | ✓ | ✓ | ✓ | ✓ | ✓ |
| Destructuring | ✓ | ✓ | ✓ | ✓ | ✓ | | Generator comprehension | | ✓ | ✓ | | ✓ |
| For-of | ✓ | ✓ | ✓ | ✓ | ✓ | | Generators | | ✓ | ✓ | | |
| Generator comprehension | | ✓ | ✓ | | ✓ | | Modules | ✓ | ✓ | | ✓ | |
| Generators | | ✓ | ✓ | | | | Property method assignment | ✓ | ✓ | ✓ | ✓ | ✓ |
| Modules | ✓ | ✓ | | ✓ | | | Property name shorthand | ✓ | ✓ | ✓ | ✓ | ✓ |
| Property method assignment | ✓ | ✓ | ✓ | ✓ | ✓ | | Rest parameters | ✓ | ✓ | ✓ | ✓ | ✓ |
| Property name shorthand | ✓ | ✓ | ✓ | ✓ | ✓ | | Spread | ✓ | ✓ | ✓ | ✓ | ✓ |
| Rest parameters | ✓ | ✓ | ✓ | ✓ | ✓ | | Template literals | ✓ | ✓ | ✓ | ✓ | ✓ |
| Spread | ✓ | ✓ | ✓ | ✓ | ✓ |
| Template literals | ✓ | ✓ | ✓ | ✓ | ✓ |
#### Performance #### Performance
@ -236,7 +234,7 @@ unneccesary step when a runtime can be eliminated entirely.
### [esnext](https://github.com/esnext/esnext) ### [esnext](https://github.com/esnext/esnext)
esnext is **slow**, painfully so. Runtime required. esnext is **slow**, painfully so. See [performance](#performance) for stats.
### [es6now](https://github.com/zenparsing/es6now) ### [es6now](https://github.com/zenparsing/es6now)