MCPcopy Create free account
hub / github.com/asm-js/validator / Env

Function Env

lib/env.js:3–8  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

1var dict = require('dict');
2
3function Env(v) {
4 if (!(this instanceof Env))
5 return new Env(v);
6 this._v = v;
7 this._dict = dict();
8}
9
10Env.prototype.lookup = function lookup(x) {
11 return this._dict.get(x) || null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected