OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
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 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 return preview; | 1207 return preview; |
1208 | 1208 |
1209 // Add internal properties to preview. | 1209 // Add internal properties to preview. |
1210 var internalProperties = InjectedScriptHost.getInternalProperties(ob
ject) || []; | 1210 var internalProperties = InjectedScriptHost.getInternalProperties(ob
ject) || []; |
1211 for (var i = 0; i < internalProperties.length; ++i) { | 1211 for (var i = 0; i < internalProperties.length; ++i) { |
1212 internalProperties[i] = nullifyObjectProto(internalProperties[i]
); | 1212 internalProperties[i] = nullifyObjectProto(internalProperties[i]
); |
1213 internalProperties[i].enumerable = true; | 1213 internalProperties[i].enumerable = true; |
1214 } | 1214 } |
1215 this._appendPropertyDescriptors(preview, internalProperties, propert
iesThreshold, secondLevelKeys, isTable); | 1215 this._appendPropertyDescriptors(preview, internalProperties, propert
iesThreshold, secondLevelKeys, isTable); |
1216 | 1216 |
1217 if (this.subtype === "map" || this.subtype === "set") | 1217 if (this.subtype === "map" || this.subtype === "set" || this.subtype
=== "iterator") |
1218 this._appendEntriesPreview(object, preview, skipEntriesPreview); | 1218 this._appendEntriesPreview(object, preview, skipEntriesPreview); |
1219 | 1219 |
1220 } catch (e) { | 1220 } catch (e) { |
1221 preview.lossless = false; | 1221 preview.lossless = false; |
1222 } | 1222 } |
1223 | 1223 |
1224 return preview; | 1224 return preview; |
1225 }, | 1225 }, |
1226 | 1226 |
1227 /** | 1227 /** |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 */ | 1806 */ |
1807 _logEvent: function(event) | 1807 _logEvent: function(event) |
1808 { | 1808 { |
1809 inspectedWindow.console.log(event.type, event); | 1809 inspectedWindow.console.log(event.type, event); |
1810 } | 1810 } |
1811 } | 1811 } |
1812 | 1812 |
1813 injectedScript._commandLineAPIImpl = new CommandLineAPIImpl(); | 1813 injectedScript._commandLineAPIImpl = new CommandLineAPIImpl(); |
1814 return injectedScript; | 1814 return injectedScript; |
1815 }) | 1815 }) |
OLD | NEW |