UNPKG

numenor

Version:

Customizable, safe evaluator of JavaScript-like expressions.

17 lines (13 loc) 478 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Spread = void 0; var _Error = require("../Error"); var Spread = function Spread(expr) { // right now the Spread expression is only allowed in the context of a // lambda arguments as a variadic argument definition (a.k.a. rest params) // and these are compiled by the Lambda expression compiler throw new TypeError((0, _Error.UnknownExpression)(expr)); }; exports.Spread = Spread;