]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/get-by-id-throw-from-getter-through-optimized-code.js
7 var shouldThrow
= false;
9 function makeWithGetter() {
11 o
.__defineGetter__("f", function() {
19 for (var i
= 0; i
< 100000; ++i
) {
20 var result
= foo({f:23});
22 throw "Error: bad result: " + result
;
23 result
= foo(makeWithGetter());
25 throw "Error: bad result: " + result
;
31 foo(makeWithGetter());
36 if (didThrow
!= "hello")
37 throw "Error: didn't throw or threw wrong exception: " + didThrow
;