Re: [webkit-dev] Invocation with undefined this on JS binding object

2015-07-02 Thread Xabier Rodríguez Calvar
O Mér, 01-07-2015 ás 18:48 +, youenn fablet escribiu: One way may be to make 'size' an attribute, cachable and returning a JSFunction wrapping a C++ function returning 1. Not sure this will pass signature tests though. I was thinking of trying this, yes. IIUC, 'size' is somehow similar

Re: [webkit-dev] Invocation with undefined this on JS binding object

2015-07-02 Thread Xabier Rodríguez Calvar
Hi, O Mér, 01-07-2015 ás 11:07 -0700, Geoffrey Garen escribiu: What exactly did you do when you tried that, and why exactly didn’t it work? What I tried was running the tests, concretely streams/reference -implementation/count-queuing-strategy.html and subtest Correctly governs the

[webkit-dev] Invocation with undefined this on JS binding object

2015-07-01 Thread Xabier Rodríguez Calvar
Hello, I need some help with some JS bindings code. I am implementing CountQueuingStrategy [1], which is an object containing two properties, one of them a function. That strategy is passed to another ReadableStream object [2] and as you can see at step 8, the size method is extracted