| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 */ | 291 */ |
| 292 isInlineScriptWithSourceURL: function() | 292 isInlineScriptWithSourceURL: function() |
| 293 { | 293 { |
| 294 return !!this.hasSourceURL && this.isInlineScript(); | 294 return !!this.hasSourceURL && this.isInlineScript(); |
| 295 }, | 295 }, |
| 296 | 296 |
| 297 /** | 297 /** |
| 298 * @param {!Array<!DebuggerAgent.ScriptPosition>} positions | 298 * @param {!Array<!DebuggerAgent.ScriptPosition>} positions |
| 299 * @return {!Promise<boolean>} | 299 * @return {!Promise<boolean>} |
| 300 */ | 300 */ |
| 301 setBlackboxedRanges: function(positions) | 301 setBlackboxRanges: function(positions) |
| 302 { | 302 { |
| 303 return new Promise(setBlackboxedRanges.bind(this)); | 303 return new Promise(setBlackboxRanges.bind(this)); |
| 304 | 304 |
| 305 /** | 305 /** |
| 306 * @param {function(?)} fulfill | 306 * @param {function(?)} fulfill |
| 307 * @param {function(*)} reject | 307 * @param {function(*)} reject |
| 308 * @this {WebInspector.Script} | 308 * @this {WebInspector.Script} |
| 309 */ | 309 */ |
| 310 function setBlackboxedRanges(fulfill, reject) | 310 function setBlackboxRanges(fulfill, reject) |
| 311 { | 311 { |
| 312 this.target().debuggerAgent().setBlackboxedRanges(this.scriptId, pos
itions, callback); | 312 this.target().debuggerAgent().setBlackboxRanges(this.hash, positions
, callback); |
| 313 /** | 313 /** |
| 314 * @param {?Protocol.Error} error | 314 * @param {?Protocol.Error} error |
| 315 */ | 315 */ |
| 316 function callback(error) | 316 function callback(error) |
| 317 { | 317 { |
| 318 if (error) | 318 if (error) |
| 319 console.error(error); | 319 console.error(error); |
| 320 fulfill(!error); | 320 fulfill(!error); |
| 321 } | 321 } |
| 322 } | 322 } |
| 323 }, | 323 }, |
| 324 | 324 |
| 325 __proto__: WebInspector.SDKObject.prototype | 325 __proto__: WebInspector.SDKObject.prototype |
| 326 } | 326 } |
| OLD | NEW |