문제

I run the following code:

var x = new Proxy({}, {
    get: function(target, name) {
        console.log(name);
        return target[name];
    }
});

var y = x + 5;

Why isn't 'valueOf' printed in console (in Firefox 24)?

See http://jsfiddle.net/WFjvv/1/.

도움이 되었습니까?

해결책

Seems to be fixed in Firefox 26.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top