]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/get-by-id-throw-from-unexpected-getter-through-optimized-code-that-does-not-exit.js
7 function makeWithGetter() {
9 o
.__defineGetter__("f", function() {
15 for (var i
= 0; i
< 100000; ++i
) {
16 var result
= foo({f:23});
18 throw "Error: bad result: " + result
;
19 result
= foo({g:12, f:13});
21 throw "Error: bad result: " + result
;
22 result
= foo({g:12, h:13, f:14});
24 throw "Error: bad result: " + result
;
29 foo(makeWithGetter());
34 if (didThrow
!= "hello")
35 throw "Error: didn't throw or threw wrong exception: " + didThrow
;