Merge pull request #3383 from babel/T7160

Regression with exporting an arrow function with a default param
This commit is contained in:
Henry Zhu
2016-03-06 15:40:27 -05:00
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"]
}