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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js

Issue 2130203002: [DevTools] Better ExceptionDetails in js_protocol.json (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 */ 306 */
307 _printRunOrCompileScriptResultFailure: function(target, exceptionDetails, so urceURL) 307 _printRunOrCompileScriptResultFailure: function(target, exceptionDetails, so urceURL)
308 { 308 {
309 var consoleMessage = new WebInspector.ConsoleMessage( 309 var consoleMessage = new WebInspector.ConsoleMessage(
310 target, 310 target,
311 exceptionDetails.source, 311 exceptionDetails.source,
312 WebInspector.ConsoleMessage.MessageLevel.Error, 312 WebInspector.ConsoleMessage.MessageLevel.Error,
313 exceptionDetails.text, 313 exceptionDetails.text,
314 undefined, 314 undefined,
315 sourceURL, 315 sourceURL,
316 exceptionDetails.line, 316 exceptionDetails.lineNumber + 1,
317 exceptionDetails.column, 317 exceptionDetails.columnNumber + 1,
318 undefined, 318 undefined,
319 undefined, 319 undefined,
320 exceptionDetails.stack); 320 exceptionDetails.stack);
321 target.consoleModel.addMessage(consoleMessage); 321 target.consoleModel.addMessage(consoleMessage);
322 }, 322 },
323 323
324 /** 324 /**
325 * @param {!WebInspector.UISourceCode} uiSourceCode 325 * @param {!WebInspector.UISourceCode} uiSourceCode
326 * @return {!Array.<!{breakpoint: !WebInspector.BreakpointManager.Breakpoint , uiLocation: !WebInspector.UILocation}>} 326 * @return {!Array.<!{breakpoint: !WebInspector.BreakpointManager.Breakpoint , uiLocation: !WebInspector.UILocation}>}
327 */ 327 */
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 this._model.deleteScriptSnippet(url); 667 this._model.deleteScriptSnippet(url);
668 }, 668 },
669 669
670 __proto__: WebInspector.ContentProviderBasedProject.prototype 670 __proto__: WebInspector.ContentProviderBasedProject.prototype
671 } 671 }
672 672
673 /** 673 /**
674 * @type {!WebInspector.ScriptSnippetModel} 674 * @type {!WebInspector.ScriptSnippetModel}
675 */ 675 */
676 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect or.workspace); 676 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect or.workspace);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698