UNPKG

calcium-lang

Version:
21 lines 603 B
import * as Err from "../error"; import { default as Sym } from "../symbol"; /** * represent `None` object */ const None = new Proxy({}, { get(target, property, receiver) { if (property === Sym.description) return "None"; else if (property === Sym.evaluate) return (env) => None; else if (property === Sym.value) return null; else if (property === Sym.class) return "None"; else throw new Err.AttributeNotFound(property.toString()); }, }); export default None; //# sourceMappingURL=none.js.map