Code: void removeAllDOMObjects()
{
     DOMDataStore& store = DOMData::getCurrentStore();
 
     v8::HandleScope scope;
 
    if (isMainThread()) {
        DOMData::removeObjectsFromWrapperMap<Node>(&store, store.domNodeMap());
        DOMData::removeObjectsFromWrapperMap<Node>(&store, store.activeDomNodeMap());
    }
     DOMData::removeObjectsFromWrapperMap<void>(&store, store.domObjectMap());
 }

Commit Message: [V8] ASSERT that removeAllDOMObjects() is called only on worker threads
https://bugs.webkit.org/show_bug.cgi?id=100046

Reviewed by Eric Seidel.

This function is called only on worker threads. We should ASSERT that
fact and remove the dead code that tries to handle the main thread
case.

* bindings/v8/V8DOMMap.cpp:
(WebCore::removeAllDOMObjects):


git-svn-id: svn://svn.chromium.org/blink/trunk@132156 bbb929c8-8fbe-4397-9dbb-9b2b20218538
CWE ID: CWE-119
void removeAllDOMObjects()
{
     DOMDataStore& store = DOMData::getCurrentStore();
 
     v8::HandleScope scope;
    ASSERT(!isMainThread());
 
    // Note: We skip the Node wrapper maps because they exist only on the main thread.
     DOMData::removeObjectsFromWrapperMap<void>(&store, store.domObjectMap());
 }
