Update README.md and add test

This commit is contained in:
Yuta Hiroto 2018-03-07 23:49:56 +09:00
parent cb4f4f4d5f
commit 2d36549541
No known key found for this signature in database
GPG Key ID: E03998F3E2B165C2
5 changed files with 20 additions and 2 deletions

View File

@ -20,11 +20,10 @@ name("Steve");
```javascript ```javascript
{ {
var _name = function _name(n) { let name = function (n) {
return n; return n;
}; };
} }
name("Steve"); name("Steve");
``` ```

View File

@ -0,0 +1,7 @@
{
function name (n) {
return n;
}
}
name("Steve");

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-block-scoped-functions"]
}

View File

@ -0,0 +1,6 @@
{
let name = function (n) {
return n;
};
}
name("Steve");

View File

@ -0,0 +1,3 @@
import runner from "@babel/helper-plugin-test-runner";
runner(__dirname);