lvm.js

changeset 125
39b6ba804009
parent 124
62354487e1ce
child 127
9a4c549c7828
equal deleted inserted replaced
124:62354487e1ce 125:39b6ba804009
888 if(currframe) 888 if(currframe)
889 { 889 {
890 var currfunc = currframe.f; 890 var currfunc = currframe.f;
891 var sourceName = (currfunc.sourceName||"=<unknown>").substr(1); 891 var sourceName = (currfunc.sourceName||"=<unknown>").substr(1);
892 var line = "?"; 892 var line = "?";
893 if(currfunc.sourceLines && currfunc.sourceLines[currframe.pc]) 893 if(currfunc.sourceLines && currfunc.sourceLines[currframe.pc-1])
894 line = currfunc.sourceLines[currframe.pc]; 894 line = currfunc.sourceLines[currframe.pc-1];
895 sys.print("lvm.js: "+sourceName+":"+line+": "); 895 sys.print("lvm.js: "+sourceName+":"+line+": ");
896 } 896 }
897 sys.puts(e); 897 sys.puts(e);
898 if(typeof(e) == "object" && "stack" in e) 898 if(typeof(e) == "object" && "stack" in e)
899 sys.puts(e.stack); 899 sys.puts(e.stack);

mercurial