Mercurial > pymonkey
changeset 156:7daa74f861c4
Added a TODO.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 30 Aug 2009 11:53:56 -0700 |
parents | b0c9d6884da3 |
children | a31ff2de6017 |
files | src/context.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/context.cpp Sun Aug 30 11:34:35 2009 -0700 +++ b/src/context.cpp Sun Aug 30 11:53:56 2009 -0700 @@ -153,8 +153,10 @@ // script object if one already exists. if (script && JS_GetScriptObject(script)) { pyScript = (PyObject *) PYM_newJSScript(self, script); - if (pyScript == NULL) + if (pyScript == NULL) { + // TODO: We should clean up here. return NULL; + } jsbytecode *pcByte = JS_GetFramePC(self->cx, frame); pc = pcByte - script->code; lineno = JS_PCToLineNumber(self->cx, script, pcByte);