TI: Inference failure when using non-int/string properties

RESOLVED FIXED

Status

()

RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: jandem, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-jaegermonkey)

(Reporter)

Description

8 years ago
Boolean property:
---
var a = {}; 
a[true] = 1; 
assertEq(a["true"], 1);
---
[infer failure] Missing type at #1:00004 popped 0: Object:prototype:new

Or with a double index:
---
var a = []; 
a[1.1] = 2; 
assertEq(a["1.1"], 2);
---
[infer failure] Missing type at #1:00005 popped 0: Array:prototype:new
Oops, we were handling reads of non-integer primitive properties correctly, but not writes.

http://hg.mozilla.org/projects/jaegermonkey/rev/cc75bc35dfba
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-jaegermonkey
You need to log in before you can comment on or make changes to this bug.