| Index: test/webkit/dfg-negative-array-index.js
|
| diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/dfg-negative-array-index.js
|
| similarity index 86%
|
| copy from test/webkit/resources/standalone-post.js
|
| copy to test/webkit/dfg-negative-array-index.js
|
| index d157e78bfa084329e2ec1a9b7d6ad456e904c152..f23c7fb8a95d94db5eed6ed2d7c5368ff5f9a0d2 100644
|
| --- a/test/webkit/resources/standalone-post.js
|
| +++ b/test/webkit/dfg-negative-array-index.js
|
| @@ -21,6 +21,17 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -wasPostTestScriptParsed = true;
|
| +description(
|
| +"Tests that storing into a negative array index works right."
|
| +);
|
| +
|
| +function foo(a, i) {
|
| + a[i] = 42;
|
| +}
|
| +
|
| +for (var i = 0; i < 100; ++i) {
|
| + var array = [];
|
| + foo(array, -1);
|
| + shouldBe("array[-1]", "42");
|
| +}
|
|
|
| -finishJSTest();
|
|
|