Function constructor should avoid String.prototype methods
authorwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 15 May 2013 10:52:06 +0000 (10:52 +0000)
committerwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 15 May 2013 10:52:06 +0000 (10:52 +0000)
commitd6fa1d8ad9401dd3a636e2b7b8913f27f4a14514
tree36a9e4f8edf49bdc4144f113d950f067cb840b7f
parentc58260cd505b9f5bbd5dc6309c8a8eed287a8538
Function constructor should avoid String.prototype methods

Replace a use of .indexOf with a call to StringIndexOf.  As always,
lexical scoping to the rescue.

R=mstarzinger@chromium.org
TEST=mjsunit/regress/regress-2686
BUG=v8:2686

Review URL: https://codereview.chromium.org/14668013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14678 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8natives.js
test/mjsunit/regress/regress-2686.js [new file with mode: 0644]