bug1135718.js (432B)
1 setJitCompilerOption("ion.warmup.trigger", 30); 2 function ArrayCallback(state) { 3 return this.state = state; 4 } 5 ArrayCallback.prototype.isUpperCase = function(v, index, array) { 6 return this.state ? true : (v == v.toUpperCase()); 7 }; 8 strings = ['hello', 'Array', 'WORLD']; 9 obj = new ArrayCallback(false); 10 strings.filter(obj.isUpperCase, obj) 11 obj = new ArrayCallback(true); 12 strings.filter(obj.isUpperCase, obj) 13 obj.__proto__ = {};