mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 794025 - Add missing test for bug 794025. r=needed-tests
--HG-- extra : rebase_source : 2e91ba614c130e1aa432824bfe1c7d29b18a209d
This commit is contained in:
parent
3de0a82629
commit
bd4e9f0a03
15
js/src/jit-test/tests/basic/bug794025.js
Normal file
15
js/src/jit-test/tests/basic/bug794025.js
Normal file
@ -0,0 +1,15 @@
|
||||
// |jit-test| error:RangeError
|
||||
|
||||
function getterFunction(v) { return "getter"; }
|
||||
Object.defineProperty(Array.prototype, 1,{
|
||||
get: getterFunction,
|
||||
});
|
||||
var N = (10000);
|
||||
repeat_str("try { f(); } finally {\n", N),
|
||||
repeat_str("}", ("" ));
|
||||
function repeat_str(str, repeat_count) {
|
||||
var arr = new Array(--repeat_count);
|
||||
while (repeat_count != 0)
|
||||
arr[--repeat_count] = str;
|
||||
return str.concat.apply(str, arr);
|
||||
}
|
Loading…
Reference in New Issue
Block a user