schnee effeckt und fehler Korektur
This commit is contained in:
6
node_modules/graceful-fs/clone.js
generated
vendored
6
node_modules/graceful-fs/clone.js
generated
vendored
@@ -2,12 +2,16 @@
|
||||
|
||||
module.exports = clone
|
||||
|
||||
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
||||
return obj.__proto__
|
||||
}
|
||||
|
||||
function clone (obj) {
|
||||
if (obj === null || typeof obj !== 'object')
|
||||
return obj
|
||||
|
||||
if (obj instanceof Object)
|
||||
var copy = { __proto__: obj.__proto__ }
|
||||
var copy = { __proto__: getPrototypeOf(obj) }
|
||||
else
|
||||
var copy = Object.create(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user