From 6d1461604fa804ed73662480245c5574539e3927 Mon Sep 17 00:00:00 2001 From: Matthew Gaudet Date: Wed, 6 Dec 2017 09:48:31 -0500 Subject: [PATCH] Bug 1423586 - Enhance test case for TypedArray IC. r=tcampbell Before this patch, the sets would be ignored by 9.4.5.9. --HG-- extra : amend_source : ce26064c333e09d7ec1030134699abcdb0965ef2 --- .../tests/typedarray/typed-array-inline-cache.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/src/jit-test/tests/typedarray/typed-array-inline-cache.js b/js/src/jit-test/tests/typedarray/typed-array-inline-cache.js index cfb6892a9c13..f7697875f940 100644 --- a/js/src/jit-test/tests/typedarray/typed-array-inline-cache.js +++ b/js/src/jit-test/tests/typedarray/typed-array-inline-cache.js @@ -41,11 +41,12 @@ function test_with_no_protochain(a) { // return false, and not consider the prototype chain at all" function test_with_protochain(a) { var a = new Int32Array(1000).fill(1); - // try to force the behaviour of 9.4.5.2 - a[1012] = "1012"; - a["-0"] = "-0"; - a[-10] = "-10"; warmup(a); + // try to force the behaviour of 9.4.5.2 + Object.prototype["-0"] = "value"; + Object.prototype[-1] = "value"; + Object.prototype[-10] = "value"; + Object.prototype[1012] = "value"; check_assertions(a); }