Subj : Re: Compiling scripts containing more than one function To : Bernt Johansson From : Brendan Eich Date : Sun Jun 01 2003 11:21 am > The buffer I send to JS_EvaluateScript/JS_CompileScript looks like this: > (...script goes here...)("just letters","111.222") > I assume that the first function defined in the script takes care of the > parameters "just letters" and "111.222"... Why do you assume that? It's contrary to the language specification and all implementations. Anything in parentheses is an expression. You cannot abut two functions without an operator and get a valid expression. If you use the comma operator, you'll avoid the compile-time error, but the last function, not the first, will be called. /be .