Fixed assertion in JSStringJoiner::join() (regression from r185899).
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jun 2015 14:18:16 +0000 (14:18 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jun 2015 14:18:16 +0000 (14:18 +0000)
commitdfeb58f2fcb91a87a533d48afcc52a42b0989455
tree057b6864e8c49988e9a702dcb2415cdd2240bb2a
parent2cae6dd4bcb9b09bea0072304f6d6ca1f0c5a4e0
Fixed assertion in JSStringJoiner::join() (regression from r185899).

Not reviewed.

JSStringJoiner did not account for the case where the array being joined can
have null or undefined elements.  As a result, its size may be less than
its initially reserved capacity (which was estimated based on the array length).

* runtime/JSStringJoiner.cpp:
(JSC::JSStringJoiner::join):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSStringJoiner.cpp