Skip to content

Commit

Permalink
fix a typo in InstallErrorCause
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 10, 2021
1 parent 8954f12 commit bfa96a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/install-error-cause.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ var createNonEnumerableProperty = require('../internals/create-non-enumerable-pr
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
module.exports = function (O, options) {
if (isObject(options) && 'cause' in options) {
createNonEnumerableProperty(O, 'cause', O.cause);
createNonEnumerableProperty(O, 'cause', options.cause);
}
};

0 comments on commit bfa96a5

Please sign in to comment.