diff runtime.c @ 47:3f4982759e55

Converting JS exceptions into Python exceptions is now doable, albeit not yet implemented, thanks to the discovery of JSOPTION_DONT_REPORT_UNCAUGHT. Also, JS warnings are now converted into Python warnings.
author Atul Varma <varmaa@toolness.com>
date Mon, 06 Jul 2009 08:13:45 -0700
parents 951ad1b15587
children bc4263c6ae82
line wrap: on
line diff
--- a/runtime.c	Mon Jul 06 01:37:16 2009 -0700
+++ b/runtime.c	Mon Jul 06 08:13:45 2009 -0700
@@ -61,7 +61,8 @@
     return NULL;
   }
 
-  JS_SetOptions(cx, JSOPTION_VAROBJFIX);
+  JS_SetOptions(cx, JSOPTION_VAROBJFIX | JSOPTION_DONT_REPORT_UNCAUGHT |
+                JSOPTION_ATLINE | JSOPTION_STRICT);
   JS_SetVersion(cx, JSVERSION_LATEST);
 
   PyObject *retval = (PyObject *) PYM_newJSContextObject(self, cx);