On Thursday 3. June 2010 03.03.34 ext Darin Adler wrote:
On Jun 1, 2010, at 5:44 AM, Jedrzej Nowacki wrote:
Would it make sense to change the behavior? The change unifies interface and is binary compatible. It shouldn't break a correct code.
One effect of making the change is that people who tested only with the newer version of JavaScriptCore might depend on the behavior and so be incompatible with older versions of JavaScriptCore. Good point. But does it mean that we can't fix any behavioral issues? This is undocumented area and it could be left like that up to the right moment.
Current behavior could lead to problems if uninitialized or badly initialized exception handler will be provided. Moreover it is not possible to check if a value returned from the JSValueToNumber is correct, unless exception handler is initialized to NULL, which seems wrong to me. I don't have a strong opinion about the problem, I have been bitten by the issue twice. Right now, I know that exception handler should be always initialized to NULL and I can live with that :-).
Geoff Garen and Maciej Stachowiak are two other people I’d like to hear from. Both are on vacation and both will be back next week. Sure :-). I'm open for a discussion.
Cheers, Jędrek