| Index: Source/bindings/tests/results/V8TestInterfaceDocument.cpp
 | 
| diff --git a/Source/bindings/tests/results/V8TestInterfaceDocument.cpp b/Source/bindings/tests/results/V8TestInterfaceDocument.cpp
 | 
| index ad76fb281f3f1bcf6835bc535abafa6a721f3d1c..fdd70606352f5403f060e4e8a0bf746755c799b9 100644
 | 
| --- a/Source/bindings/tests/results/V8TestInterfaceDocument.cpp
 | 
| +++ b/Source/bindings/tests/results/V8TestInterfaceDocument.cpp
 | 
| @@ -125,9 +125,10 @@ v8::Handle<v8::Object> wrap(TestInterfaceDocument* impl, v8::Handle<v8::Object>
 | 
|      v8::Handle<v8::Object> wrapper = V8TestInterfaceDocument::createWrapper(impl, creationContext, isolate);
 | 
|      if (wrapper.IsEmpty())
 | 
|          return wrapper;
 | 
| -    if (!isolatedWorldForEnteredContext(isolate)) {
 | 
| +    DOMWrapperWorld* world = DOMWrapperWorld::current(isolate);
 | 
| +    if (world->isMainWorld()) {
 | 
|          if (Frame* frame = impl->frame())
 | 
| -            frame->script().windowShell(DOMWrapperWorld::mainWorld())->updateDocumentWrapper(wrapper);
 | 
| +            frame->script().windowShell(world)->updateDocumentWrapper(wrapper);
 | 
|      }
 | 
|      return wrapper;
 | 
|  }
 | 
| 
 |