From 3b2c967217fb746024fe129d26641fa88b103269 Mon Sep 17 00:00:00 2001 From: David Vazquez Date: Fri, 25 Jan 2013 00:20:58 +0000 Subject: [PATCH] MULTIPLE-VALUE-CALL implementation --- ecmalisp.lisp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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