michael@0: // |jit-test| error:TypeError michael@0: michael@0: // Binary: cache/js-dbg-32-7504904b5f8f-linux michael@0: // Flags: -j michael@0: // michael@0: Object.extend = function(destination, source) { michael@0: for (var property in source) michael@0: destination[property] = source[property] michael@0: } michael@0: Object.extend(Function.prototype, { michael@0: curry: function() { michael@0: var __method = this, michael@0: args = $A(arguments) michael@0: return function() { michael@0: return __method( michael@0: arguments) michael@0: } michael@0: }, michael@0: wrap: function(wrapper) { michael@0: return function() { ([]( michael@0: $A(arguments))) michael@0: } michael@0: } michael@0: }) michael@0: function $A(iterable) { michael@0: var length = iterable.length michael@0: while (length--); michael@0: } michael@0: var ga = { michael@0: c: 3, michael@0: d: 4 michael@0: } michael@0: ga. michael@0: __defineGetter__("", /x/.test.wrap("").curry(true, "")) michael@0: for (var p in ga) { michael@0: ga[p] michael@0: }