Regression with exporting an arrow function with a default param

This commit is contained in:
Henry Zhu
2016-02-29 18:10:46 -05:00
parent 4d7b2b8066
commit 414efef7e3
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export var foo = function(gen, ctx = null) {
}
export var bar = (gen, ctx = null) => {
}

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var foo = exports.foo = function foo(gen) {
var ctx = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
};
var bar = exports.bar = function bar(gen) {
var ctx = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
};

View File

@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}