]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/StringObjectThatMasqueradesAsUndefined.h
JavaScriptCore-621.1.tar.gz
[apple/javascriptcore.git] / runtime / StringObjectThatMasqueradesAsUndefined.h
index bc5c0a5b22eb9f6fa88578215ce806ae185a2aa4..43c3e3839a41f09bc01cc40d1e36ecc2566d6bc3 100644 (file)
@@ -37,16 +37,18 @@ namespace JSC {
         }
 
     private:
-        StringObjectThatMasqueradesAsUndefined(ExecState* exec, PassRefPtr<Structure> structure, const UString& string)
+        StringObjectThatMasqueradesAsUndefined(ExecState* exec, NonNullPassRefPtr<Structure> structure, const UString& string)
             : StringObject(exec, structure, string)
         {
         }
 
         static PassRefPtr<Structure> createStructure(JSValue proto) 
         { 
-            return Structure::create(proto, TypeInfo(ObjectType, MasqueradesAsUndefined)); 
+            return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); 
         }
 
+        static const unsigned StructureFlags = OverridesGetOwnPropertySlot | MasqueradesAsUndefined | OverridesGetPropertyNames | StringObject::StructureFlags;
+
         virtual bool toBoolean(ExecState*) const { return false; }
     };