# HG changeset patch # User Atul Varma # Date 1245684814 25200 # Node ID 96312690f35f216a7a729fb89034a804e28d1091 # Parent cd5faa0bb46ccf8ab8aee09501d6e76c91f52748 Added a TODO. diff -r cd5faa0bb46c -r 96312690f35f wrapper.cpp --- a/wrapper.cpp Mon Jun 22 08:31:23 2009 -0700 +++ b/wrapper.cpp Mon Jun 22 08:33:34 2009 -0700 @@ -191,6 +191,9 @@ static JSObject * wrappedObject(JSContext *cx, JSObject *obj) { jsval wrappee; + // TODO: This function will be setting an error if it fails; + // not sure if wrappedObject() handlers are allowed to raise + // exceptions or not. if (!JS_GetReservedSlot(cx, obj, SLOT_WRAPPEE, &wrappee)) return obj; return JSVAL_TO_OBJECT(wrappee);