X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=JavaScriptGlue%2FJSRun.cpp;h=564b542a925a5cc9a2c100e767931e6c1af5bbe4;hp=1548710afb8db4b407fd59131c451eecf48db9c7;hb=4b9cbecef256ff5549930bdb4b1fe15205540eae;hpb=057581462d20ad6f067e0d29408e9f33e09cd854;ds=sidebyside diff --git a/JavaScriptGlue/JSRun.cpp b/JavaScriptGlue/JSRun.cpp index 1548710afb8d..564b542a925a 100644 --- a/JavaScriptGlue/JSRun.cpp +++ b/JavaScriptGlue/JSRun.cpp @@ -4,46 +4,46 @@ #include "JSRun.h" -JSRun::JSRun(CFStringRef source, JSFlags inFlags) - : JSBase(kJSRunTypeID), - fSource(CFStringToUString(source)), - fGlobalObject(Object(new ObjectImp())), - fInterpreter(fGlobalObject, inFlags), - fFlags(inFlags) +JSRun::JSRun(CFStringRef source, JSFlags inFlags) + : JSBase(kJSRunTypeID), + fSource(CFStringToUString(source)), + fGlobalObject(new JSObject()), + fInterpreter(fGlobalObject, inFlags), + fFlags(inFlags) { } - -JSRun::~JSRun() -{ + +JSRun::~JSRun() +{ } JSFlags JSRun::Flags() const { - return fFlags; + return fFlags; } UString JSRun::GetSource() const { - return fSource; + return fSource; } -Object JSRun::GlobalObject() const +JSObject *JSRun::GlobalObject() const { - return fGlobalObject; + return fGlobalObject; } -JSInterpreter* JSRun::GetInterpreter() +JSInterpreter* JSRun::GetInterpreter() { - return &fInterpreter; + return &fInterpreter; } -Completion JSRun::Evaluate() -{ - return fInterpreter.evaluate(fSource); +Completion JSRun::Evaluate() +{ + return fInterpreter.evaluate(fSource); } -bool JSRun::CheckSyntax() -{ - return fInterpreter.checkSyntax(fSource); +bool JSRun::CheckSyntax() +{ + return fInterpreter.checkSyntax(fSource); }