summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/actions/node16/node_modules/whatwg-url/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/actions/node16/node_modules/whatwg-url/lib/utils.js')
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/whatwg-url/lib/utils.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node16/node_modules/whatwg-url/lib/utils.js b/pkg/runner/testdata/actions/node16/node_modules/whatwg-url/lib/utils.js
new file mode 100644
index 0000000..a562009
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/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];
+};
+