summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug490776.js
blob: 2348f1269c0662ac7812579465a2d46012400e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// |jit-test| error:TypeError

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