Changeset 16985


Ignore:
Timestamp:
07/26/13 13:23:17 (11 years ago)
Author:
tbretz
Message:
Every context which we enter, we have to exit as well, otherwise changes get lost.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r16936 r16985  
    228228    if (!HandleException(exception, "thread"))
    229229        V8::TerminateExecution(fThreadId);
     230
     231    func->CreationContext()->Exit();
    230232}
    231233
     
    14561458    Handle<Object> obj = it->second;
    14571459
    1458     obj->CreationContext()->Enter();
    1459 
    14601460    const Handle<String> onchange = String::New("onchange");
    14611461    if (!obj->Has(onchange))
     
    14661466        return;
    14671467
     1468    obj->CreationContext()->Enter();
     1469
    14681470    // -------------------------------------------------------------------
    14691471
     
    14871489        V8::TerminateExecution(fThreadId);
    14881490    }
     1491
     1492    obj->CreationContext()->Exit();
    14891493}
    14901494
     
    15561560    if (!HandleException(exception, "dim.onchange"))
    15571561        V8::TerminateExecution(fThreadId);
     1562
     1563    it->second->CreationContext()->Exit();
    15581564}
    15591565
     
    16371643    if (!HandleException(exception, "interrupt"))
    16381644        V8::TerminateExecution(fThreadId);
     1645
     1646    fInterruptCallback->CreationContext()->Exit();
    16391647
    16401648    return rc<10 || rc>255 ? -42 : rc;
Note: See TracChangeset for help on using the changeset viewer.