Changeset 8639
- Timestamp:
- 01/14/08 01:22:37 (9 months ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/src/base.js (modified) (1 diff)
- spinoffs/prototype/trunk/test/unit/base.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r8591 r8639 1 1 *SVN* 2 3 * Make Object.inspect more robust. [Tobie Langel] 2 4 3 5 * Add a description to :test and :dist rake tasks. [Christoph Sturm] spinoffs/prototype/trunk/src/base.js
r8149 r8639 72 72 if (Object.isUndefined(object)) return 'undefined'; 73 73 if (object === null) return 'null'; 74 return object.inspect ? object.inspect() : object.toString();74 return object.inspect ? object.inspect() : String(object); 75 75 } catch (e) { 76 76 if (e instanceof RangeError) return '...'; spinoffs/prototype/trunk/test/unit/base.html
r8572 r8639 267 267 assertEqual("'foo\\\\b\\\'ar'", Object.inspect('foo\\b\'ar')); 268 268 assertEqual('[]', Object.inspect([])); 269 assertNothingRaised(function() { Object.inspect(window.Node) }); 269 270 }}, 270 271