1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug490776.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +// |jit-test| error:TypeError 1.5 + 1.6 +// Binary: cache/js-dbg-32-7504904b5f8f-linux 1.7 +// Flags: -j 1.8 +// 1.9 +Object.extend = function(destination, source) { 1.10 + for (var property in source) 1.11 + destination[property] = source[property] 1.12 +} 1.13 +Object.extend(Function.prototype, { 1.14 + curry: function() { 1.15 + var __method = this, 1.16 + args = $A(arguments) 1.17 + return function() { 1.18 + return __method( 1.19 + arguments) 1.20 + } 1.21 + }, 1.22 + wrap: function(wrapper) { 1.23 + return function() { ([]( 1.24 + $A(arguments))) 1.25 + } 1.26 + } 1.27 +}) 1.28 +function $A(iterable) { 1.29 + var length = iterable.length 1.30 + while (length--); 1.31 +} 1.32 +var ga = { 1.33 + c: 3, 1.34 + d: 4 1.35 +} 1.36 +ga. 1.37 +__defineGetter__("", /x/.test.wrap("").curry(true, "")) 1.38 +for (var p in ga) { 1.39 + ga[p] 1.40 +}