Closed Bug 706584 Opened 13 years ago Closed 13 years ago

Test media and bug fixes for delete operator on float4

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
Q2 12 - Cyril

People

(Reporter: lhansen, Assigned: lhansen)

References

Details

Attachments

(1 file, 1 obsolete file)

So far "delete" has been left out of the float4 spec, but there needs to be a little bit of special support for the numbered properties 0, 1, 2, 3 (and their string representations).  Specifically, 

  v = float4(1)
  print(delete v[2])

should print "false", ditto for indices 0, 1, and 3 and "0", "1", "2", "3".  Right now the code above throws an error, which is wrong.

Once we have test cases we will also see that there will be bugs filed for the incorrect implementation of delete.

(New specs are forthcoming; the 29 November 2011 specs do not cover this.)
Flags: in-testsuite?
Assignee: nobody → lhansen
Depends on: 711007
Attached file Tentative test cases (obsolete) —
These test cases will crash ASC.  Filed as bug #711007.
Attachment #581907 - Attachment is obsolete: true
A "delete" on a float4 will always end up in MethodEnv::delproperty through both interpreter and jit, so the logic can probably be concentrated in that method.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Code, spec, and test media in sync as of these revisions:

tr-float:

changeset:   7087:10d6f2a953fc
tag:         tip
user:        Lars T Hansen <lhansen@adobe.com>
date:        Thu Dec 15 14:44:54 2011 +0100
summary:     Fix 706584 - Test media and bug fixes for delete operator on float4

specs:

changeset:   762:e6b8a420b247
tag:         tip
user:        Lars T Hansen <lhansen@adobe.com>
date:        Thu Dec 15 14:52:18 2011 +0100
summary:     Clarified the behavior of the delete operator on float4
changeset: 7143:23de30953af3
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 706584: add delete testcase for float4 that produces a reference error that must be compiled without strict mode

http://hg.mozilla.org/tamarin-redux/rev/23de30953af3
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: