JSImmutableButterfly should assert m_header is adjacent to the data
[WebKit-https.git] / Source / JavaScriptCore / runtime / JSImmutableButterfly.cpp
index d25bfc6..b38098c 100644 (file)
@@ -54,4 +54,6 @@ void JSImmutableButterfly::copyToArguments(ExecState* exec, VirtualRegister firs
     }
 }
 
+static_assert(JSImmutableButterfly::offsetOfData() == sizeof(JSImmutableButterfly), "m_header needs to be adjacent to Data");
+
 } // namespace JSC