Initial commit

This commit is contained in:
hensm
2018-06-08 04:56:02 +01:00
commit d815fb7af0
70 changed files with 8370 additions and 0 deletions

11
ext/src/lib/utils.js Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
export function cloneIntoWithProto (obj, destination) {
const ret = cloneInto(obj, destination);
for (const key of Object.getOwnPropertyNames(obj.__proto__)) {
exportFunction(obj.__proto__[key].bind(obj), ret, { defineAs: key });
}
return ret;
}