Throw an exception when wrong arguments are passed into SwapElements.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 May 2010 17:24:41 +0000 (17:24 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 May 2010 17:24:41 +0000 (17:24 +0000)
commit4501cea97b2174125bbd10e572a808e09399e9af
treeb3f07494ca7e8bbbd2700435bf1e7cac658faa01
parent6617fac3d4b74d7ed8cbcfade026c598a85e3a26
Throw an exception when wrong arguments are passed into SwapElements.

This runtime function should operate on elements and thus 'receiver'
must be JSObject and indices should be numbers.

TBR=lrm@chromium.org,ricow@chromium.org

Review URL: http://codereview.chromium.org/1960001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4583 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc