git://git.webkit.org
/
WebKit-https.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[DFG][FTL] operationHasIndexedProperty does not consider negative int32_t
[WebKit-https.git]
/
JSTests
/
stress
/
operation-in-may-have-negative-int32-array-storage.js
1
function shouldBe(actual, expected)
2
{
3
if (actual !== expected)
4
throw new Error('bad value: ' + actual);
5
}
6
7
var k = -1;
8
var o1 = [20];
9
o1[k] = 42;
10
ensureArrayStorage(o1);
11
12
function test1(o)
13
{
14
return k in o;
15
}
16
noInline(test1);
17
18
for (var i = 0; i < 1e6; ++i)
19
shouldBe(test1(o1), true);