Implement the slice operator

RESOLVED FIXED

Status

RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: lhansen, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
Created attachment 325622 [details] [diff] [review]
Patch

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)

Updated

10 years ago
Attachment #325622 - Flags: review?(jodyer) → review+
(Reporter)

Updated

10 years ago
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.