Changeset 4792 in webkit for trunk/JavaScriptCore/kjs/ustring.cpp
- Timestamp:
- Aug 8, 2003, 8:21:12 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ustring.cpp
r4639 r4792 709 709 } 710 710 711 // Rule from ECMA 15.2 about what an array index is. 712 // Must exactly match string form of an unsigned integer, and be less than 2^32 - 1. 713 unsigned UString::toArrayIndex(bool *ok) const 714 { 715 unsigned i = toStrictUInt32(ok); 716 if (i >= 0xFFFFFFFFU && ok) 717 *ok = false; 718 return i; 719 } 720 711 721 int UString::find(const UString &f, int pos) const 712 722 {
Note:
See TracChangeset
for help on using the changeset viewer.