Closed Bug 440125 Opened 16 years ago Closed 16 years ago

Implement the slice operator

Categories

(Tamarin Graveyard :: Self-hosting compiler (ESC), defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lhansen, Unassigned)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
This patch alters the parsing of the slice operator to generate a call node that calls AS3::slice on the receiver object, passing the arguments that were used in the slice expression (with defaults generated as appropriate).  Since AS3::slice on strings and arrays only accepts two arguments at the present time a three-value form of the slice operator will generate a run-time error, but that's just a detail.
Attachment #325622 - Flags: review?(jodyer)
Attachment #325622 - Flags: review?(jodyer) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: