Call eval() in Sync-async loop to work around crashes on 1.9.2 Fennec.

This commit is contained in:
Edward Lee 2009-09-25 20:53:46 -07:00
Родитель 86667667bd
Коммит 08eb7e1a48
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -118,7 +118,8 @@ function Sync(func, thisArg, callback) {
// Keep waiting until our callback is triggered
let callbackData = instanceCallback._(SECRET);
while (callbackData.state == CB_READY)
thread.processNextEvent(true);
// XXX Work around bug 518220 until jit.chrome doesn't crash Fennec
eval(), thread.processNextEvent(true);
// Reset the state of the callback to prepare for another call
let state = callbackData.state;