willcore.core
Version:
Core proxy/assignable modules
16 lines (15 loc) • 496 B
JavaScript
const intermediateProxyHandler = require("./intermediateProxyHandler.js");
/**
* Proxy class for the main intermediate assignable instanciation.
*/
class intermediateProxy{
/**
* Factory method.
* @param {Proxy} parentProxy
* @param {String} parentProperty
*/
static new(parentProxy, parentProperty){
return new Proxy(new intermediateProxy(), new intermediateProxyHandler(parentProxy,parentProperty));
}
}
module.exports = intermediateProxy;