Skip to content

Commit

Permalink
Hack to fix transpilation bug for Promise.any()
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed Dec 23, 2019
1 parent 9556861 commit c781e47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Expand Up @@ -7,7 +7,7 @@
"proposals": true,
"version": 3
},
"useBuiltIns": "usage"
"useBuiltIns": "entry"
}
]
]
Expand Down
2 changes: 1 addition & 1 deletion __tests__/index.js
Expand Up @@ -226,7 +226,7 @@ describe("rules dependencies", function() {
});

describe("object dependency", function() {
test.skip("shortcircuit", function() {
test("shortcircuit", function() {
const validators = [
[
"parent",
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
@@ -1,3 +1,8 @@
// TODO https://github.com/zloirock/core-js/issues/737
require("core-js/modules/esnext.aggregate-error");
require("core-js/modules/esnext.promise.any");


function expandRules(value)
{
const {filteredRules, validators} = this
Expand Down

0 comments on commit c781e47

Please sign in to comment.