Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | function test() { |
michael@0 | 2 | LastIndexOf("hello"); |
michael@0 | 3 | LastIndexOf("hello"); |
michael@0 | 4 | eval(""); |
michael@0 | 5 | function LastIndexOf(s) { |
michael@0 | 6 | x = Math.min(Math.max(Math.pow(-1, 0.5), 0), s.length); |
michael@0 | 7 | 0 <= x; |
michael@0 | 8 | } |
michael@0 | 9 | } test(); |