Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/d8.js

Issue 17071: Fixed double printing of exceptions when enabeling the debugger.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/d8.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 if (response.body[i].type == Debug.ScriptType.Native) { 698 if (response.body[i].type == Debug.ScriptType.Native) {
699 result += ', native'; 699 result += ', native';
700 } else if (response.body[i].type == Debug.ScriptType.Extension) { 700 } else if (response.body[i].type == Debug.ScriptType.Extension) {
701 result += ', extension'; 701 result += ', extension';
702 } 702 }
703 result += ')'; 703 result += ')';
704 } 704 }
705 details.text = result; 705 details.text = result;
706 break; 706 break;
707 707
708 case 'continue':
709 details.text = "(running)";
710 break;
711
708 default: 712 default:
709 details.text = 713 details.text =
710 'Response for unknown command \'' + response.command + '\''; 714 'Response for unknown command \'' + response.command + '\'' +
715 ' (' + json_response + ')';
711 } 716 }
712 } catch (e) { 717 } catch (e) {
713 details.text = 'Error: "' + e + '" formatting response'; 718 details.text = 'Error: "' + e + '" formatting response';
714 } 719 }
715 720
716 return details; 721 return details;
717 }; 722 };
718 723
719 724
720 function MakeJSONPair_(name, value) { 725 function MakeJSONPair_(name, value) {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 json += NumberToJSON_(elem); 919 json += NumberToJSON_(elem);
915 } else if (typeof(elem) === 'string') { 920 } else if (typeof(elem) === 'string') {
916 json += StringToJSON_(elem); 921 json += StringToJSON_(elem);
917 } else { 922 } else {
918 json += elem; 923 json += elem;
919 } 924 }
920 } 925 }
921 json += ']'; 926 json += ']';
922 return json; 927 return json;
923 } 928 }
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698