Mercurial > spidermonkey-playground
changeset 22:96312690f35f
Added a TODO.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 22 Jun 2009 08:33:34 -0700 |
parents | cd5faa0bb46c |
children | a94e7cc0727a |
files | wrapper.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);