]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/JSArrayBuffer.cpp
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / runtime / JSArrayBuffer.cpp
index 6105bd6ad446b4bd6e17f2f4e14a2101bfe1d8cd..62ab89a3de24b4a37e54c94bec22c3b6d424ebf0 100644 (file)
@@ -32,7 +32,7 @@
 namespace JSC {
 
 const ClassInfo JSArrayBuffer::s_info = {
-    "ArrayBuffer", &Base::s_info, 0, 0, CREATE_METHOD_TABLE(JSArrayBuffer)};
+    "ArrayBuffer", &Base::s_info, 0, CREATE_METHOD_TABLE(JSArrayBuffer)};
 
 JSArrayBuffer::JSArrayBuffer(VM& vm, Structure* structure, PassRefPtr<ArrayBuffer> arrayBuffer)
     : Base(vm, structure)
@@ -119,7 +119,7 @@ void JSArrayBuffer::getOwnNonIndexPropertyNames(
 {
     JSArrayBuffer* thisObject = jsCast<JSArrayBuffer*>(object);
     
-    if (mode == IncludeDontEnumProperties)
+    if (mode.includeDontEnumProperties())
         array.add(exec->propertyNames().byteLength);
     
     Base::getOwnNonIndexPropertyNames(thisObject, exec, array, mode);