diff --git a/src/backend/src/util/context.js b/src/backend/src/util/context.js index 91948b8f..cf68cb4c 100644 --- a/src/backend/src/util/context.js +++ b/src/backend/src/util/context.js @@ -75,6 +75,22 @@ class Context { get values () { return this.values_; } + + /** + * @untested + */ + get_proxy_object () { + return new Proxy(this.values_, { + get: (target, prop) => { + return this.get(prop); + }, + set: (target, prop, value) => { + this.set(prop, value); + return true; + }, + }); + } + constructor (imm_values, opt_parent, opt_name) { const values = { ...imm_values }; imm_values = null;