Skip to content

Commit

Permalink
[Refactor] switching to a maintained Object.assign package
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 7, 2023
1 parent 80664db commit f5d7c66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const AssertionError = require('./internal/assert/assertion_error');
const { inspect } = require('util/');
const { isPromise, isRegExp } = require('util/').types;

const objectAssign = Object.assign ? Object.assign : require('es6-object-assign').assign;
const objectIs = Object.is ? Object.is : require('object-is');
const objectAssign = require('object.assign/polyfill')();
const objectIs = require('object-is/polyfill')();

const RegExpPrototypeTest = require('call-bind/callBound')('RegExp.prototype.test');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
},
"dependencies": {
"call-bind": "^1.0.2",
"es6-object-assign": "^1.1.0",
"is-nan": "^1.2.1",
"object-is": "^1.0.1",
"object.assign": "^4.1.4",
"util": "^0.12.0"
}
}

0 comments on commit f5d7c66

Please sign in to comment.