diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/pako/lib/utils/common.js | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/pako/lib/utils/common.js')
-rw-r--r-- | node_modules/pako/lib/utils/common.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/node_modules/pako/lib/utils/common.js b/node_modules/pako/lib/utils/common.js index 1e159fecb..58be4beb4 100644 --- a/node_modules/pako/lib/utils/common.js +++ b/node_modules/pako/lib/utils/common.js @@ -5,6 +5,9 @@ var TYPED_OK = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Int32Array !== 'undefined'); +function _has(obj, key) { + return Object.prototype.hasOwnProperty.call(obj, key); +} exports.assign = function (obj /*from1, from2, from3, ...*/) { var sources = Array.prototype.slice.call(arguments, 1); @@ -17,7 +20,7 @@ exports.assign = function (obj /*from1, from2, from3, ...*/) { } for (var p in source) { - if (source.hasOwnProperty(p)) { + if (_has(source, p)) { obj[p] = source[p]; } } |