Index: Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h |
diff --git a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h |
index 1ff4cb37c6790d807bdc1fd14fade31d261b357f..a8cd66536fa2f705159ad49786a63353bb14dbec 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h |
+++ b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h |
@@ -46,7 +46,7 @@ class V8TestInterfaceWillBeGarbageCollected { |
public: |
static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Value>, v8::Isolate*); |
- static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*, WrapperWorldType); |
+ static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
static TestInterfaceWillBeGarbageCollected* toNative(v8::Handle<v8::Object> object) |
{ |
return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
@@ -109,7 +109,7 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceWill |
template<typename CallbackInfo> |
inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestInterfaceWillBeGarbageCollected* impl) |
{ |
- ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
+ ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); |
if (UNLIKELY(!impl)) { |
v8SetReturnValueNull(callbackInfo); |
return; |