Remove excessive headers from JavaScriptCore
[WebKit-https.git] / Source / JavaScriptCore / runtime / JSLexicalEnvironment.h
index 5ae193e..f3b3d4a 100644 (file)
@@ -81,7 +81,7 @@ inline JSLexicalEnvironment::JSLexicalEnvironment(VM& vm, Structure* structure,
 
 inline JSLexicalEnvironment* asActivation(JSValue value)
 {
-    ASSERT(asObject(value)->inherits(JSLexicalEnvironment::info()));
+    ASSERT(asObject(value)->inherits(*value.getObject()->vm(), JSLexicalEnvironment::info()));
     return jsCast<JSLexicalEnvironment*>(asObject(value));
 }