Closed Bug 1261102 Opened 10 years ago Closed 10 years ago

Javascript bug

Categories

(developer.mozilla.org Graveyard :: KumaScript, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: zahreddine.chaibi, Unassigned)

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ [].a = true; "".a = true; What happened? ============== It works What should have happened? ========================== throw an error Is there anything else we should know? ======================================
Severity: normal → critical
Keywords: html4
OS: Other → All
Priority: -- → P4
Group: websites-security
Arrays and Strings are objects in JavaScript. They have some extra features and a special literal syntax, but they are objects that can have properties. That makes these property assignment statements valid and not throwing any error.
Severity: critical → normal
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Keywords: html4
Priority: P4 → --
Resolution: --- → INVALID
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.