diff options
Diffstat (limited to 'pkg/runner/testdata/actions/node12/node_modules/whatwg-url/lib/utils.js')
-rw-r--r-- | pkg/runner/testdata/actions/node12/node_modules/whatwg-url/lib/utils.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node12/node_modules/whatwg-url/lib/utils.js b/pkg/runner/testdata/actions/node12/node_modules/whatwg-url/lib/utils.js new file mode 100644 index 0000000..a562009 --- /dev/null +++ b/pkg/runner/testdata/actions/node12/node_modules/whatwg-url/lib/utils.js @@ -0,0 +1,20 @@ +"use strict"; + +module.exports.mixin = function mixin(target, source) { + const keys = Object.getOwnPropertyNames(source); + for (let i = 0; i < keys.length; ++i) { + Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i])); + } +}; + +module.exports.wrapperSymbol = Symbol("wrapper"); +module.exports.implSymbol = Symbol("impl"); + +module.exports.wrapperForImpl = function (impl) { + return impl[module.exports.wrapperSymbol]; +}; + +module.exports.implForWrapper = function (wrapper) { + return wrapper[module.exports.implSymbol]; +}; + |