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
This commit is contained in:
Matthew Gaudet 2017-12-06 09:48:31 -05:00
Родитель b3493432e7
Коммит 6d1461604f
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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);
}