Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compileString returns script for every script ...

17 views
Skip to first unread message

Jaimon

unread,
Jan 4, 2010, 10:58:01 AM1/4/10
to
hi,
i am trying to use the compileString to check for errors, the compile
cx.compileScript return a script object regardless of the validity of
the code

i am doing something like that:
try
{
final Script script = cx.compileString(this.js, "codeboxAction", 0,
null); //$NON-NLS-1$
if (script!=null)
return script;

}
catch (EvaluatorException e){
return null;
}
return null;
}

and i always get a script object....
please advise

0 new messages