mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-13 15:41:11 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
node_modules/graceful-fs
19
node_modules/graceful-fs/clone.js
generated
vendored
19
node_modules/graceful-fs/clone.js
generated
vendored
|
@ -1,19 +0,0 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = clone
|
||||
|
||||
function clone (obj) {
|
||||
if (obj === null || typeof obj !== 'object')
|
||||
return obj
|
||||
|
||||
if (obj instanceof Object)
|
||||
var copy = { __proto__: obj.__proto__ }
|
||||
else
|
||||
var copy = Object.create(null)
|
||||
|
||||
Object.getOwnPropertyNames(obj).forEach(function (key) {
|
||||
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
|
||||
})
|
||||
|
||||
return copy
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue