UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

8 lines 223 B
import undef from "./temporalUndefined"; export default function _temporalRef(val, name) { if (val === undef) { throw new ReferenceError(name + " is not defined - temporal dead zone"); } else { return val; } }