(f)
| 36 | Object.defineProperty(testObj, "length", lengthGetter); |
| 37 | |
| 38 | function test(f) { |
| 39 | try { |
| 40 | f.call(testObj, undefined); |
| 41 | return false; |
| 42 | } catch (e) { |
| 43 | return e === true; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | shouldBeTrue("test(Array.prototype.join)"); |
| 48 | shouldBeTrue("test(Array.prototype.pop)"); |