Closed
Bug 1261102
Opened 10 years ago
Closed 10 years ago
Javascript bug
Categories
(developer.mozilla.org Graveyard :: KumaScript, defect)
developer.mozilla.org Graveyard
KumaScript
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?
======================================
| Reporter | ||
Updated•10 years ago
|
Updated•10 years ago
|
Group: websites-security
Comment 1•10 years ago
|
||
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
Updated•6 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•