Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/script/bridge/qscriptclassobject.cpp

    r651 r769  
    227227
    228228    QScriptEnginePrivate *eng_p = scriptEngineFromExec(exec);
    229     //JSC::ExecState *oldFrame = eng_p->currentFrame;
     229    JSC::ExecState *oldFrame = eng_p->currentFrame;
    230230    eng_p->pushContext(exec, JSC::JSValue(), args, callee, true);
    231231    QScriptContext *ctx = eng_p->contextForFrame(eng_p->currentFrame);
     
    235235    if (!result.isObject())
    236236        result = defaultObject;
     237    eng_p->popContext();
     238    eng_p->currentFrame = oldFrame;
    237239    return JSC::asObject(eng_p->scriptValueToJSCValue(result));
    238240}
  • trunk/src/script/bridge/qscriptqobject_p.h

    r651 r769  
    305305    static WTF::PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
    306306    {
    307         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
     307        return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::ImplementsHasInstance));
    308308    }
    309309
Note: See TracChangeset for help on using the changeset viewer.