Closed Bug 617930 Opened 15 years ago Closed 12 years ago

WebInspector (Chrome, Safari): Error when printing the object in the console

Categories

(Other Applications Graveyard :: Narcissus, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: vjeuxx, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 Build Identifier: When using WebInspector (Chrome, Safari), if you try to output the result of a parsing, it outputs this error: Error: Node.prototype.length is gone; use n.children.length instead This is because Web Inspector is accessing the length property to check if the object is an array. Then this triggers this code: // jsparse.js line 261 definitions.defineGetter(Np, "length", function() { throw new Error("Node.prototype.length is gone; " + "use n.children.length instead"); }); I believe that you added this code to easily make the transition. Is it over? Removing it would fix the issue. Reproducible: Always Steps to Reproduce: 1. Open this URL with Chrome: http://fooo.fr/~vjeux/blog/climbjs/optimize/test.html 2. Open WebInspector (Ctrl Alt Shift J) 3. Type: Narcissus.parser.parse('') Actual Results: Error: Node.prototype.length is gone; use n.children.length instead Expected Results: > Node (You can click to see the actual object)
Bugzilla is only for Mozilla products.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.