QtScript: Add yet more missing API shims
authorKent Hansen <kent.hansen@nokia.com>
Fri, 26 Mar 2010 13:00:02 +0000 (14:00 +0100)
committerKent Hansen <kent.hansen@nokia.com>
Fri, 26 Mar 2010 15:16:49 +0000 (16:16 +0100)
commit7a11acd536d84ad22ef98a0fdbdb4322a55efafb
treedd36701a69219ec43182001a61386c99b6644e7d
parent61b488a965eebc52104243dce21eaeb203cfecae
QtScript: Add yet more missing API shims

- for QScriptEngine and QScriptContext; we don't control what the
JSC functions are doing, so it's better to have shims than not to
have them (which can cause something to blow up), even if they
might not be strictly necessary as of this writing.

- for QScriptDeclarativeClass; otherwise the identifiers might
be created/destroyed in the wrong engine.

- for QScriptValueIterator destructor; otherwise the identifiers
might be destroyed in the wrong engine.

This is an attempt to fix a crash in Bauhaus, but it might still
be crashing (i.e. still some shims missing, somewhere) ;(
src/script/api/qscriptcontext.cpp
src/script/api/qscriptengine.cpp
src/script/api/qscriptvalueiterator.cpp
src/script/bridge/qscriptdeclarativeclass.cpp