Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Objective-C API: Fix insertion of values greater than the max index a…
…llowed by the spec https://bugs.webkit.org/show_bug.cgi?id=108264 Reviewed by Oliver Hunt. Fixed a bug, added a test to the API tests, cleaned up some code. * API/JSValue.h: Changed some of the documentation on setValue:atIndex: to indicate that setting values at indices greater than UINT_MAX - 1 wont' affect the length of JS arrays. * API/JSValue.mm: (-[JSValue valueAtIndex:]): We weren't returning when we should have been. (-[JSValue setValue:atIndex:]): Added a comment about why we do the early check for being larger than UINT_MAX. (objectToValueWithoutCopy): Removed two redundant cases that were already checked previously. * API/tests/testapi.mm: Canonical link: https://commits.webkit.org/126713@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Mark Hahnenberg
committed
Jan 31, 2013
1 parent
a2333cd
commit 33059e6
Showing
4 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters