repo.or.cz
/
webkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[CSS Container Queries] offsetWidth/Height and similar should update layout for conta...
[webkit.git]
/
JSTests
/
get-my-argument-by-val-negative-3.js
blob
b6121945d04e6c399579127eeac560cee86bd72b
1
function assert(b) {
2
if (!b)
3
throw new Error;
4
}
5
6
function main() {
7
let result;
8
9
const v13 = [0, 0];
10
Array.prototype[-1] = v13;
11
12
const func = function func(i, ...args) {
13
result = args[i];
14
};
15
noInline(func);
16
17
for (let v30 = 0; v30 < 10000; v30++) {
18
func(1000, 10);
19
}
20
21
func(-1, 10);
22
assert(result === v13);
23
}
24
noDFG(main);
25
main();