swig/Lib/javascript/jsc
Eric Wing f1c331f2c5 JavaScriptCore: Returning NULL for wrapper functions that expect JSValueRef may crash program.
According to this:
http://parmanoir.com/Taming_JavascriptCore_within_and_without_WebView
Returning NULL instead of an actual JSValueRef for a return value of a function could lead to crashes. I think I have seen related weirdness in the past when I failed to return a proper type to JSCore which resulted in very hard to understand behavior.

So this patch changes those return NULLs to return JSValueMakeUndefined().

I thought about JSObjectMakeError, but I don't fully understand the intent of the Error object and can't find any relevant real world examples of it being used. However, everybody seems to be using JSValueMakeUndefined().

This patch should be low impact since this is only triggered on an error condition.
2014-05-26 22:35:27 +02:00
..
arrays_javascript.i Typemap for natural support for arrays 2013-09-03 13:58:09 +02:00
ccomplex.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
cdata.i Add cdata.i typemaps. 2013-09-16 04:12:06 +02:00
complex.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
exception.i Some fixes for the Javascript generator. 2013-09-09 22:25:51 +03:00
javascript.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptcode.swg JavaScriptCore: Returning NULL for wrapper functions that expect JSValueRef may crash program. 2014-05-26 22:35:27 +02:00
javascriptcomplex.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptfragments.swg Clean up in javascripttypemaps.swg. 2013-09-09 17:34:53 +03:00
javascripthelpers.swg JavaScript: Added missing static modifiers to avoid duplicate symbol problems with multiple SWIG modules. 2014-05-18 21:27:53 +02:00
javascriptinit.swg Rearrange generation of init block to have custom init code within the initializer body. 2013-09-16 03:53:00 +02:00
javascriptkw.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptprimtypes.swg Fix typemap declarations for (unsigned) long long. 2013-09-16 01:23:03 +02:00
javascriptrun.swg JavaScriptCore: Fixed exception object so sourceURL (file name), line (number), and message can be recovered. 2014-05-26 22:35:27 +02:00
javascriptruntime.swg Add support for PackedData to Javascript generator. 2013-09-10 11:53:12 +03:00
javascriptstrings.swg Javascript warnings for c++98 - remove vla 2014-05-24 14:13:24 +01:00
javascripttypemaps.swg Add support for IN/OUTPUT typemaps. 2013-09-16 00:55:43 +02:00
std_common.i Remove execute permissions from various non-executable files 2014-05-02 20:06:11 +02:00
std_complex.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_deque.i Add stub std_deque.i files. 2013-09-24 03:56:19 +02:00
std_except.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_map.i Remove execute permissions from various non-executable files 2014-05-02 20:06:11 +02:00
std_pair.i Remove execute permissions from various non-executable files 2014-05-02 20:06:11 +02:00
std_string.i Javascript: fix warnings in li_std_string test. 2014-05-18 22:40:22 +02:00
std_vector.i Remove execute permissions from various non-executable files 2014-05-02 20:06:11 +02:00
stl.i Remove execute permissions from various non-executable files 2014-05-02 20:06:11 +02:00
typemaps.i Add support for IN/OUTPUT typemaps. 2013-09-16 00:55:43 +02:00