Changeset 31320 in webkit
- Timestamp:
- Mar 26, 2008 10:49:32 AM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r31317 r31320 1 2008-03-26 Adam Roben <aroben@apple.com> 2 3 Fix Bug 17768: REGRESSION (r30146): Inspector no longer shows elements 4 properties 5 6 <http://bugs.webkit.org/show_bug.cgi?id=17768> 7 8 We were throwing an exception from Object.describe because of some 9 undefined variables. 10 11 Reviewed by Tim Hatcher. 12 13 * page/inspector/utilities.js: 14 (Object.describe): Reinstate the type1 and type2 variables that were 15 removed in r30146. They're still used when formatting a function. 16 1 17 2008-03-26 Eric Seidel <eric@webkit.org> 2 18 -
trunk/WebCore/page/inspector/utilities.js
r31159 r31320 55 55 Object.describe = function(obj, abbreviated) 56 56 { 57 switch (Object.type(obj)) { 57 var type1 = Object.type(obj); 58 var type2 = Object.prototype.toString.call(obj).replace(/^\[object (.*)\]$/i, "$1"); 59 60 switch (type1) { 58 61 case "object": 59 return Object.prototype.toString.call(obj).replace(/^\[object (.*)\]$/i, "$1");62 return type2; 60 63 case "array": 61 64 return "[" + obj.toString() + "]";
Note: See TracChangeset
for help on using the changeset viewer.