UNPKG

calcium-lang

Version:
18 lines 583 B
import { default as Sym } from "../symbol"; import { AttributeNotFound } from "../error"; const object = new Proxy({}, { get(target, property, receiver) { if (property === Sym.name) return "object"; else if (property === Sym.class) return self; else if (property === Sym.superclass) return null; else if (property === Sym.evaluate) return (env) => object; else throw new AttributeNotFound(property.toString()); }, }); export default object; //# sourceMappingURL=object.js.map