Pregunta

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/.

¿Fue útil?

Solución

Seems to be fixed in Firefox 26.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top