void V8AbstractEventListener::handleEvent(ExecutionContext*, Event* event)
{
- if (scriptState()->contextIsEmpty())
+ if (scriptState()->contextIsValid())
return;
if (!scriptState()->executionContext())
return;
if (jsEvent.IsEmpty())
return;
- ASSERT(!scriptState()->contextIsEmpty());
+ ASSERT(!scriptState()->contextIsValid());
v8::Local<v8::Value> returnValue;
{
// Catch exceptions thrown in the event handler so they do not propagate to javascript code that caused the event to fire.