--- JS.xs 2006/07/22 17:10:02 1.3
+++ JS.xs 2006/07/24 19:53:02 1.4
@@ -126,7 +126,7 @@
struct PerlObjectItem {
char * name;
SV* pObject;
- //JSObject *jsStub;
+ /* OSSP BUGFIX *//*JSObject *jsStub;*/
JSObject *jsObject;
JSClass *jsClass;
struct PerlCallbackItem* vector;
@@ -136,8 +136,8 @@
typedef struct PerlObjectItem PerlObjectItem;
/* error reporter */
-//struct JSContextItem;
-//struct JSContextItem;
+/* OSSP BUGFIX *//*struct JSContextItem;*/
+/* OSSP BUGFIX *//*struct JSContextItem;*/
struct JSContextItem {
JSContext *cx;
SV *errorReporter;
@@ -492,7 +492,8 @@
class->enumerate = JS_EnumerateStub;
class->resolve = JS_ResolveStub;
class->convert = JS_ConvertStub;
- //class->finalize = JS_FinalizeStub;
+ /* OSSP BUGFIX */
+ /*class->finalize = JS_FinalizeStub;*/
class->finalize = PCB_FinalizeStub;
return(class);
}
@@ -655,7 +656,7 @@
JS_ClearPendingException(cx);
}
JS_SetErrorReporter(cx, NULL);
- JS_GC(cx); //important
+ JS_GC(cx); /* OSSP BUGFIX */ /*important*/
JS_DestroyContext(cx);
PCB_FreeContextItem(cx);
}
@@ -811,7 +812,7 @@
}
/* create js object in given context */
object_class = PCB_NewStdJSClass(name);
- //jso = JS_NewObject(cx, object_class, NULL, 0);
+ /* OSSP BUGFIX */ /* jso = JS_NewObject(cx, object_class, NULL, 0); */
jso = JS_DefineObject(cx, JS_GetGlobalObject(cx), name,
object_class, NULL,
|