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

Side by Side Diff: Source/devtools/front_end/RemoteObject.js

Issue 203443010: DevTools: [JsDocValidator] Fix checking of receivers specified as arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a suppression hint message Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 }, 277 },
278 278
279 /** 279 /**
280 * @param {!Array.<string>} propertyPath 280 * @param {!Array.<string>} propertyPath
281 * @param {function(?WebInspector.RemoteObject, boolean=)} callback 281 * @param {function(?WebInspector.RemoteObject, boolean=)} callback
282 */ 282 */
283 getProperty: function(propertyPath, callback) 283 getProperty: function(propertyPath, callback)
284 { 284 {
285 /** 285 /**
286 * @param {string} arrayStr 286 * @param {string} arrayStr
287 * @suppressReceiverCheck
287 * @this {Object} 288 * @this {Object}
288 */ 289 */
289 function remoteFunction(arrayStr) 290 function remoteFunction(arrayStr)
290 { 291 {
291 var result = this; 292 var result = this;
292 var properties = JSON.parse(arrayStr); 293 var properties = JSON.parse(arrayStr);
293 for (var i = 0, n = properties.length; i < n; ++i) 294 for (var i = 0, n = properties.length; i < n; ++i)
294 result = result[properties[i]]; 295 result = result[properties[i]];
295 return result; 296 return result;
296 } 297 }
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 result = functionDeclaration.apply(target, rawArgs); 974 result = functionDeclaration.apply(target, rawArgs);
974 } catch (e) { 975 } catch (e) {
975 result = null; 976 result = null;
976 } 977 }
977 978
978 callback(result); 979 callback(result);
979 }, 980 },
980 981
981 __proto__: WebInspector.RemoteObject.prototype 982 __proto__: WebInspector.RemoteObject.prototype
982 } 983 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/PropertiesSidebarPane.js ('k') | Source/devtools/front_end/RuntimeModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698