Closed
Bug 677518
Opened 15 years ago
Closed 13 years ago
keys() should return an error if it doesn't exist when calling against a HTML canvas element
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: vladmaniac, Unassigned)
Details
(Whiteboard: [6b5])
Attachments
(1 file)
|
1.67 KB,
text/html
|
Details |
Build identifier: Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0
As a result of an iRC discussion with Mihai, decided we should dump some error
if the .keys() helper function does not exist/apply for an object
1. Open the test page
2. Open the web console
3. From the command line, type:
var heartObject = $("heart")
keys(heartObject)
Actual result:
nothing
Expected:
There should be an error, at liest 'undefined'
Notes:
Object.keys(heartObject) triggers "[]" in the console, so i guess keys() can do that too. You guys decide what to put there, but leaving empty results in not a good option in my opinion.
| Reporter | ||
Updated•15 years ago
|
Whiteboard: [6b5]
Comment 1•13 years ago
|
||
the example now should be using $("#heart") on everything from fx16 up.
This returns "constructor" as typed above. When I run keys($("#heart")) directly, I got [].
I think we can kill this.
Status: NEW → RESOLVED
Closed: 13 years ago
Component: Developer Tools → Developer Tools: Console
Resolution: --- → WORKSFORME
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•