From: David Vazquez Date: Fri, 25 Jan 2013 00:20:58 +0000 (+0000) Subject: MULTIPLE-VALUE-CALL implementation X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=3b2c967217fb746024fe129d26641fa88b103269;p=jscl.git MULTIPLE-VALUE-CALL implementation --- diff --git a/ecmalisp.lisp b/ecmalisp.lisp index 17dd213..900eef9 100644 --- a/ecmalisp.lisp +++ b/ecmalisp.lisp @@ -1568,15 +1568,22 @@ (let ((func (ls-compile func-form))) (js!selfcall "var args = [values];" *newline* - "function values(){" *newline* + "values = function(){" *newline* (indent "var result = [];" *newline* + "result['multiple-value'] = true;" *newline* "for (var i=0; i