Closed
Bug 660210
Opened 15 years ago
Closed 7 years ago
Vector indexing is inconsistent with "in"
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: lhansen, Unassigned)
Details
Adam observes:
Vector.<String>.prototype[2] = "blah";
var v:Vector.<String> = new Vector.<String>(1);
trace (2 in v); // prints "false"
trace ("2" in v); // prints "true"
trace(v["2"]); // throws RangeError
trace(v[2]); // throws RangeErrror
The bug here is that "2" in v prints true: the "in" operator looks through the restrictions on indexing expressions (all numbers are absorbed by the Vector); it should not.
Comment 1•15 years ago
|
||
Was this was injected (e.g. by my in-operator changes) or has it been this way since Vector was introduced?
| Reporter | ||
Comment 2•15 years ago
|
||
(In reply to comment #1)
> Was this was injected (e.g. by my in-operator changes) or has it been this
> way since Vector was introduced?
I have no idea. My money would be on the former but I really don't know.
| Reporter | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> (In reply to comment #1)
> > Was this was injected (e.g. by my in-operator changes) or has it been this
> > way since Vector was introduced?
>
> I have no idea. My money would be on the former but I really don't know.
Sorry, I miswrote. My money would be on the latter: that it's been this way since Vector was introduced.
Flags: flashplayer-qrb+
Flags: flashplayer-needsversioning+
Flags: flashplayer-injection-
Flags: flashplayer-bug+
Summary: Vector indexing is incosistent with "in" → Vector indexing is inconsistent with "in"
Comment 4•7 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•