├── .gitignore ├── README.md ├── dist-template.js ├── dist └── babel-features.js ├── lib ├── index.js └── tests.js ├── package.json ├── src ├── features.yaml └── features │ ├── async-functions.js │ ├── async-generators.js │ ├── es2015-arrow-functions.js │ ├── es2015-block-scoped-functions.js │ ├── es2015-block-scoping.js │ ├── es2015-classes.js │ ├── es2015-computed-properties.js │ ├── es2015-constants.js │ ├── es2015-destructuring.js │ ├── es2015-duplicate-keys.js │ ├── es2015-for-of.js │ ├── es2015-function-name.js │ ├── es2015-generator-return.js │ ├── es2015-generators.js │ ├── es2015-literals.js │ ├── es2015-object-super.js │ ├── es2015-parameters.js │ ├── es2015-shorthand-properties.js │ ├── es2015-spread.js │ ├── es2015-sticky-regex.js │ ├── es2015-template-literals.js │ ├── es2015-typeof-symbol.js │ ├── es2015-unicode-regex.js │ ├── es3-function-scope.js │ ├── es3-member-expression-literals.js │ ├── es3-property-literals.js │ ├── es5-property-mutators.js │ ├── exponentiation-operator.js │ ├── function-sent.js │ ├── object-rest-spread.js │ └── trailing-function-commas.js ├── test.html └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /sandbox 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/README.md -------------------------------------------------------------------------------- /dist-template.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/dist-template.js -------------------------------------------------------------------------------- /dist/babel-features.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/dist/babel-features.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/lib/tests.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/package.json -------------------------------------------------------------------------------- /src/features.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features.yaml -------------------------------------------------------------------------------- /src/features/async-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/async-functions.js -------------------------------------------------------------------------------- /src/features/async-generators.js: -------------------------------------------------------------------------------- 1 | async function* foo(x) { 2 | return await x 3 | } 4 | -------------------------------------------------------------------------------- /src/features/es2015-arrow-functions.js: -------------------------------------------------------------------------------- 1 | var foo = () => true 2 | 3 | assert( 4 | foo() 5 | ) 6 | -------------------------------------------------------------------------------- /src/features/es2015-block-scoped-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-block-scoped-functions.js -------------------------------------------------------------------------------- /src/features/es2015-block-scoping.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-block-scoping.js -------------------------------------------------------------------------------- /src/features/es2015-classes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-classes.js -------------------------------------------------------------------------------- /src/features/es2015-computed-properties.js: -------------------------------------------------------------------------------- 1 | var foo = {["b" + "ar"]: true} 2 | 3 | assert( 4 | foo.bar 5 | ) 6 | -------------------------------------------------------------------------------- /src/features/es2015-constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-constants.js -------------------------------------------------------------------------------- /src/features/es2015-destructuring.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-destructuring.js -------------------------------------------------------------------------------- /src/features/es2015-duplicate-keys.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-duplicate-keys.js -------------------------------------------------------------------------------- /src/features/es2015-for-of.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-for-of.js -------------------------------------------------------------------------------- /src/features/es2015-function-name.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-function-name.js -------------------------------------------------------------------------------- /src/features/es2015-generator-return.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-generator-return.js -------------------------------------------------------------------------------- /src/features/es2015-generators.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-generators.js -------------------------------------------------------------------------------- /src/features/es2015-literals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-literals.js -------------------------------------------------------------------------------- /src/features/es2015-object-super.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-object-super.js -------------------------------------------------------------------------------- /src/features/es2015-parameters.js: -------------------------------------------------------------------------------- 1 | function foo(x = true) { 2 | return x 3 | } 4 | 5 | assert( 6 | foo() 7 | ) 8 | -------------------------------------------------------------------------------- /src/features/es2015-shorthand-properties.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-shorthand-properties.js -------------------------------------------------------------------------------- /src/features/es2015-spread.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-spread.js -------------------------------------------------------------------------------- /src/features/es2015-sticky-regex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-sticky-regex.js -------------------------------------------------------------------------------- /src/features/es2015-template-literals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-template-literals.js -------------------------------------------------------------------------------- /src/features/es2015-typeof-symbol.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es2015-typeof-symbol.js -------------------------------------------------------------------------------- /src/features/es2015-unicode-regex.js: -------------------------------------------------------------------------------- 1 | var re = /^.$/u 2 | 3 | assert( 4 | re.test("𠮷") 5 | ) 6 | -------------------------------------------------------------------------------- /src/features/es3-function-scope.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es3-function-scope.js -------------------------------------------------------------------------------- /src/features/es3-member-expression-literals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/es3-member-expression-literals.js -------------------------------------------------------------------------------- /src/features/es3-property-literals.js: -------------------------------------------------------------------------------- 1 | var foo = {if: true} 2 | 3 | assert( 4 | foo["if"] 5 | ) 6 | -------------------------------------------------------------------------------- /src/features/es5-property-mutators.js: -------------------------------------------------------------------------------- 1 | var foo = { 2 | get bar() { return true } 3 | } 4 | 5 | assert( 6 | foo.bar 7 | ) 8 | -------------------------------------------------------------------------------- /src/features/exponentiation-operator.js: -------------------------------------------------------------------------------- 1 | assert( 2 | 2 ** 10 === 1024 3 | ) 4 | -------------------------------------------------------------------------------- /src/features/function-sent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/function-sent.js -------------------------------------------------------------------------------- /src/features/object-rest-spread.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/object-rest-spread.js -------------------------------------------------------------------------------- /src/features/trailing-function-commas.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/src/features/trailing-function-commas.js -------------------------------------------------------------------------------- /test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/test.html -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hax/babel-features/HEAD/test.js --------------------------------------------------------------------------------