Evaluating a script
•
Object result = cx.evaluateString(scope, args[0],
•
"<cmd>", 1, null);
•
•
Uses the Context
cx
to evaluate a string
•
Evaluation of the script looks up variables
in
scope
•
Errors will be reported with the filename
<cmd>
and line number 1
•