diff context.c @ 43:5727675b1bcb

JS-wrapped python functions now take a context object as their first parameter.
author Atul Varma <varmaa@toolness.com>
date Sun, 05 Jul 2009 23:52:14 -0700
parents e62b1801f9af
children 0b9a316ce4ef
line wrap: on
line diff
--- a/context.c	Fri Jul 03 21:15:18 2009 -0700
+++ b/context.c	Sun Jul 05 23:52:14 2009 -0700
@@ -287,6 +287,7 @@
   Py_INCREF(runtime);
 
   context->cx = cx;
+  JS_SetContextPrivate(cx, context);
 
 #ifdef JS_GC_ZEAL
   // TODO: Consider exposing JS_SetGCZeal() to Python instead of