swig/Lib/javascript
Eric Wing d5ea32d760 JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value.
It is common in C to accept NULL to functions for pointer parameters.
extern void DoSomething(struct Foo* foo);
...
DoSomething(NULL);

Thus, JavaScript null should be allowed:
module.DoSomething(null);

But the current ConvertPtr definition accepts only objects. This modifies it to allow null.
2014-05-19 16:04:22 +02:00
..
jsc JavaScriptCore: ConvertPtr should allow JavaScript null to be a valid value. 2014-05-19 16:04:22 +02:00
v8 Revert "Javascript: support null pointers." 2014-05-19 11:46:21 +02:00