| OLD | NEW |
| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 */ | 247 */ |
| 248 function evaluated(result, wasThrown) | 248 function evaluated(result, wasThrown) |
| 249 { | 249 { |
| 250 if (!result || wasThrown) { | 250 if (!result || wasThrown) { |
| 251 completionsReadyCallback([]); | 251 completionsReadyCallback([]); |
| 252 return; | 252 return; |
| 253 } | 253 } |
| 254 | 254 |
| 255 /** | 255 /** |
| 256 * @param {string} primitiveType | 256 * @param {string} primitiveType |
| 257 * @suppressReceiverCheck |
| 257 * @this {WebInspector.RuntimeModel} | 258 * @this {WebInspector.RuntimeModel} |
| 258 */ | 259 */ |
| 259 function getCompletions(primitiveType) | 260 function getCompletions(primitiveType) |
| 260 { | 261 { |
| 261 var object; | 262 var object; |
| 262 if (primitiveType === "string") | 263 if (primitiveType === "string") |
| 263 object = new String(""); | 264 object = new String(""); |
| 264 else if (primitiveType === "number") | 265 else if (primitiveType === "number") |
| 265 object = new Number(0); | 266 object = new Number(0); |
| 266 else if (primitiveType === "boolean") | 267 else if (primitiveType === "boolean") |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 /** | 596 /** |
| 596 * @return {string} | 597 * @return {string} |
| 597 */ | 598 */ |
| 598 displayName: function() | 599 displayName: function() |
| 599 { | 600 { |
| 600 return this._url; | 601 return this._url; |
| 601 }, | 602 }, |
| 602 | 603 |
| 603 __proto__: WebInspector.ExecutionContextList.prototype | 604 __proto__: WebInspector.ExecutionContextList.prototype |
| 604 } | 605 } |
| OLD | NEW |