calcium-lang
Version:
Calcium language interpreter
18 lines • 583 B
JavaScript
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