mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
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:
parent
b3493432e7
commit
6d1461604f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user