Skip to content

Commit

Permalink
Inline promise polyfill fallback.
Browse files Browse the repository at this point in the history
The UMD wrapping that was used by es6-promise was causing issues in
certain contexts (see embroider-build/embroider#677).

This moves from es6-promise to the same promise polyfill that is used by
[email protected] and higher ([email protected] with some tweaks).
  • Loading branch information
rwjblue committed Feb 17, 2021
1 parent f2ebea6 commit d71fe65
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@ module.exports = {
'require-jsdoc': 'error',
},
},
{
files: ['addon-test-support/@ember/test-helpers/-internal/promise-polyfill.js'],
rules: {
'require-jsdoc': 'off',
'valid-jsdoc': 'off',
},
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default Promise;
Loading

0 comments on commit d71fe65

Please sign in to comment.