MCPcopy
hub / github.com/mishoo/UglifyJS-old / _lambda

Function _lambda

lib/process.js:421–428  ·  view source on GitHub ↗
(name, args, body)

Source from the content-addressed store, hash-verified

419 };
420
421 function _lambda(name, args, body) {
422 var is_defun = this[0] == "defun";
423 return [ this[0], is_defun ? define(name, "defun") : name, args, with_new_scope(function(){
424 if (!is_defun) define(name, "lambda");
425 MAP(args, function(name){ define(name, "arg") });
426 return MAP(body, walk);
427 })];
428 };
429
430 function _vardefs(type) {
431 return function(defs) {

Callers

nothing calls this directly

Calls 5

defineFunction · 0.85
with_new_scopeFunction · 0.85
get_mangledFunction · 0.85
tightenFunction · 0.85
with_scopeFunction · 0.70

Tested by

no test coverage detected