Index: Source/bindings/tests/results/V8TestException.h |
diff --git a/Source/bindings/tests/results/V8TestException.h b/Source/bindings/tests/results/V8TestException.h |
index e01c1bddc5ae104378e90a441f5d258ca9457a43..89639fea7de55a500d0c12ad872a8d5a773a2079 100644 |
--- a/Source/bindings/tests/results/V8TestException.h |
+++ b/Source/bindings/tests/results/V8TestException.h |
@@ -45,7 +45,7 @@ class V8TestException { |
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 TestException* toNative(v8::Handle<v8::Object> object) |
{ |
return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
@@ -104,7 +104,7 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestException* im |
template<typename CallbackInfo> |
inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestException* impl) |
{ |
- ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
+ ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); |
if (UNLIKELY(!impl)) { |
v8SetReturnValueNull(callbackInfo); |
return; |