Skip to content

Commit

Permalink
Add test for regression 4219
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Apr 6, 2017
1 parent 60df9f3 commit 66f8546
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
@@ -0,0 +1,5 @@
function test(fn) {
return async (...args) => {
return fn(...args);
};
}
@@ -0,0 +1,21 @@
"use strict";

function test(fn) {
var _this = this;

return function _callee() {
var _args = arguments;
return regeneratorRuntime.async(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", fn.apply(undefined, _args));

case 1:
case "end":
return _context.stop();
}
}
}, null, _this);
};
}
@@ -0,0 +1,7 @@
{
"plugins": [
"transform-es2015-parameters",
"transform-es2015-spread",
"transform-regenerator"
]
}

0 comments on commit 66f8546

Please sign in to comment.