Changeset 15557 in webkit for trunk/JavaScriptCore/kjs/string_object.h
- Timestamp:
- Jul 21, 2006, 11:50:24 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.h
r15468 r15557 42 42 static JSValue *lengthGetter(ExecState *exec, JSObject *, const Identifier&, const PropertySlot &slot); 43 43 static JSValue *indexGetter(ExecState *exec, JSObject *, const Identifier&, const PropertySlot &slot); 44 }; 45 46 // WebCore uses this to make style.filter undetectable 47 class StringInstanceThatMasqueradesAsUndefined : public StringInstance { 48 public: 49 StringInstanceThatMasqueradesAsUndefined(JSObject* proto, const UString& string) 50 : StringInstance(proto, string) { } 51 virtual bool masqueradeAsUndefined() const { return true; } 52 virtual bool toBoolean(ExecState*) const { return false; } 44 53 }; 45 54
Note:
See TracChangeset
for help on using the changeset viewer.