OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 _printResult: function(result, wasThrown, originatingConsoleMessage, excepti
onDetails) | 781 _printResult: function(result, wasThrown, originatingConsoleMessage, excepti
onDetails) |
782 { | 782 { |
783 if (!result) | 783 if (!result) |
784 return; | 784 return; |
785 | 785 |
786 var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error :
WebInspector.ConsoleMessage.MessageLevel.Log; | 786 var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error :
WebInspector.ConsoleMessage.MessageLevel.Log; |
787 var message; | 787 var message; |
788 if (!wasThrown) | 788 if (!wasThrown) |
789 message = new WebInspector.ConsoleMessage(result.target(), WebInspec
tor.ConsoleMessage.MessageSource.JS, level, "", WebInspector.ConsoleMessage.Mess
ageType.Result, undefined, undefined, undefined, undefined, [result]); | 789 message = new WebInspector.ConsoleMessage(result.target(), WebInspec
tor.ConsoleMessage.MessageSource.JS, level, "", WebInspector.ConsoleMessage.Mess
ageType.Result, undefined, undefined, undefined, undefined, [result]); |
790 else | 790 else |
791 message = new WebInspector.ConsoleMessage(result.target(), WebInspec
tor.ConsoleMessage.MessageSource.JS, level, exceptionDetails.text, WebInspector.
ConsoleMessage.MessageType.Result, exceptionDetails.url, exceptionDetails.line,
exceptionDetails.column, undefined, [WebInspector.UIString("Uncaught"), result],
exceptionDetails.stackTrace, undefined, undefined, undefined, exceptionDetails.
scriptId); | 791 message = new WebInspector.ConsoleMessage(result.target(), WebInspec
tor.ConsoleMessage.MessageSource.JS, level, exceptionDetails.text, WebInspector.
ConsoleMessage.MessageType.Result, exceptionDetails.url, exceptionDetails.line,
exceptionDetails.column, undefined, [WebInspector.UIString("Uncaught"), result],
exceptionDetails.stack, undefined, undefined, exceptionDetails.scriptId); |
792 message.setOriginatingMessage(originatingConsoleMessage); | 792 message.setOriginatingMessage(originatingConsoleMessage); |
793 result.target().consoleModel.addMessage(message); | 793 result.target().consoleModel.addMessage(message); |
794 }, | 794 }, |
795 | 795 |
796 /** | 796 /** |
797 * @param {string} text | 797 * @param {string} text |
798 * @param {boolean} useCommandLineAPI | 798 * @param {boolean} useCommandLineAPI |
799 */ | 799 */ |
800 _appendCommand: function(text, useCommandLineAPI) | 800 _appendCommand: function(text, useCommandLineAPI) |
801 { | 801 { |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 return true; | 1300 return true; |
1301 } | 1301 } |
1302 return false; | 1302 return false; |
1303 } | 1303 } |
1304 } | 1304 } |
1305 | 1305 |
1306 /** | 1306 /** |
1307 * @typedef {{messageIndex: number, matchIndex: number}} | 1307 * @typedef {{messageIndex: number, matchIndex: number}} |
1308 */ | 1308 */ |
1309 WebInspector.ConsoleView.RegexMatchRange; | 1309 WebInspector.ConsoleView.RegexMatchRange; |
OLD | NEW |