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

Diff of /trunk/js/jsexn.cpp

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

revision 332 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 399 by siliconforks, Tue Dec 9 03:37:47 2008 UTC
# Line 338  Line 338 
338          if (fp->script) {          if (fp->script) {
339              elem->filename = fp->script->filename;              elem->filename = fp->script->filename;
340              if (fp->regs)              if (fp->regs)
341                  elem->ulineno = js_PCToLineNumber(cx, fp->script, fp->regs->pc);                  elem->ulineno = js_FramePCToLineNumber(cx, fp);
342          }          }
343          ++elem;          ++elem;
344      }      }
# Line 804  Line 804 
804      } else {      } else {
805          if (!fp)          if (!fp)
806              fp = JS_GetScriptedCaller(cx, NULL);              fp = JS_GetScriptedCaller(cx, NULL);
807          lineno = (fp && fp->regs)          lineno = (fp && fp->regs) ? js_FramePCToLineNumber(cx, fp) : 0;
                  ? js_PCToLineNumber(cx, fp->script, fp->regs->pc)  
                  : 0;  
808      }      }
809    
810      return (OBJ_GET_CLASS(cx, obj) != &js_ErrorClass) ||      return (OBJ_GET_CLASS(cx, obj) != &js_ErrorClass) ||
# Line 1074  Line 1072 
1072              break;              break;
1073    
1074          /* Make this constructor make objects of class Exception. */          /* Make this constructor make objects of class Exception. */
1075          fun->u.n.clasp = &js_ErrorClass;          FUN_CLASP(fun) = &js_ErrorClass;
1076    
1077          /* Make the prototype and constructor links. */          /* Make the prototype and constructor links. */
1078          if (!js_SetClassPrototype(cx, FUN_OBJECT(fun), protos[i],          if (!js_SetClassPrototype(cx, FUN_OBJECT(fun), protos[i],

Legend:
Removed from v.332  
changed lines
  Added in v.399

  ViewVC Help
Powered by ViewVC 1.1.24