Skip to content

Commit

Permalink
fix has own -> has
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Sep 24, 2021
1 parent ddec5d8 commit 71adeb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core-js/internals/install-error-cause.js
@@ -1,11 +1,10 @@
var isObject = require('../internals/is-object');
var has = require('../internals/has');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');

// `InstallErrorCause` abstract operation
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
module.exports = function (O, options) {
if (isObject(options) && has(options, 'cause')) {
if (isObject(options) && 'cause' in options) {
createNonEnumerableProperty(O, 'cause', O.cause);
}
};

0 comments on commit 71adeb4

Please sign in to comment.