7 JSRun::JSRun(CFStringRef source, JSFlags inFlags)
8 : JSBase(kJSRunTypeID),
9 fSource(CFStringToUString(source)),
10 fGlobalObject(new ObjectImp()),
11 fInterpreter(fGlobalObject, inFlags),
20 JSFlags JSRun::Flags() const
25 UString JSRun::GetSource() const
30 ObjectImp *JSRun::GlobalObject() const
35 JSInterpreter* JSRun::GetInterpreter()
40 Completion JSRun::Evaluate()
42 return fInterpreter.evaluate(fSource);
46 bool JSRun::CheckSyntax()
48 return fInterpreter.checkSyntax(fSource);