Merge branch 'master' of github.com:babel/babel
This commit is contained in:
commit
276cafaae1
@ -32,7 +32,7 @@ $ make test
|
||||
```
|
||||
|
||||
This will usually take around two minutes as it's compiling the entire
|
||||
[test262](https://github.com/tc39/test262) test suite and validating it's AST.
|
||||
[test262](https://github.com/tc39/test262) test suite and validating its AST.
|
||||
This is mostly overkill and you can limit the tests to a select few by directly
|
||||
running them with `mocha`:
|
||||
|
||||
@ -40,6 +40,12 @@ running them with `mocha`:
|
||||
$ mocha test/transformation.js
|
||||
```
|
||||
|
||||
Use mocha's `--grep` option to run a subset of tests by name:
|
||||
|
||||
```sh
|
||||
$ mocha test/transformation.js --grep es7
|
||||
```
|
||||
|
||||
#### Workflow
|
||||
|
||||
* Fork the repository
|
||||
|
||||
6
test/fixtures/transformation/es6-spread/this-context/actual.js
vendored
Normal file
6
test/fixtures/transformation/es6-spread/this-context/actual.js
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
var obj = {
|
||||
foo: function foo() {
|
||||
this.bar(...arguments)
|
||||
this.blah(...arguments)
|
||||
}
|
||||
}
|
||||
8
test/fixtures/transformation/es6-spread/this-context/expected.js
vendored
Normal file
8
test/fixtures/transformation/es6-spread/this-context/expected.js
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var obj = {
|
||||
foo: function foo() {
|
||||
this.bar.apply(this, arguments);
|
||||
this.blah.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user