> Vidar Ramdal <vi...@...> writes:
>> [...]
>> engine.eval("var foo = ''bar");
>> engine.eval("foo.length");

On Tue, Sep 1, 2009 at 3:17 PM, John Crawford<[email protected]> wrote:
> Try using [1] instead.  I believe that your first statement fails, therefore,
> the engine is properly evaluating the second statement.

> [1]
> engine.eval("var foo = 'bar'");
> engine.eval("foo.length");

Sorry, the code was not correctly copied in my first post. Your code
is what I'm actually running.
Anyway, if the first statement fails, shouldn't there be an exception thrown?

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070

Reply via email to