/[jscoverage]/trunk/js/json.cpp
ViewVC logotype

Diff of /trunk/js/json.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 584 by siliconforks, Sun Jan 10 07:23:34 2010 UTC revision 585 by siliconforks, Sun Sep 12 15:13:23 2010 UTC
# Line 527  Line 527 
527  js_Stringify(JSContext *cx, jsval *vp, JSObject *replacer, jsval space,  js_Stringify(JSContext *cx, jsval *vp, JSObject *replacer, jsval space,
528               JSCharBuffer &cb)               JSCharBuffer &cb)
529  {  {
     // XXX stack  
     JSObject *stack = JS_NewArrayObject(cx, 0, NULL);  
     if (!stack)  
         return JS_FALSE;  
   
530      StringifyContext scx(cx, cb, replacer);      StringifyContext scx(cx, cb, replacer);
531      if (!InitializeGap(cx, space, scx.gap))      if (!InitializeGap(cx, space, scx.gap))
532          return JS_FALSE;          return JS_FALSE;
# Line 540  Line 535 
535      if (!obj)      if (!obj)
536          return JS_FALSE;          return JS_FALSE;
537    
538        JSAutoTempValueRooter tvr(cx, obj);
539      if (!obj->defineProperty(cx, ATOM_TO_JSID(cx->runtime->atomState.emptyAtom),      if (!obj->defineProperty(cx, ATOM_TO_JSID(cx->runtime->atomState.emptyAtom),
540                               *vp, NULL, NULL, JSPROP_ENUMERATE)) {                               *vp, NULL, NULL, JSPROP_ENUMERATE)) {
541          return JS_FALSE;          return JS_FALSE;

Legend:
Removed from v.584  
changed lines
  Added in v.585

  ViewVC Help
Powered by ViewVC 1.1.24