Skip to content

subArray([0], 1, 0) should not return an error #3616

Closed

Description

Describe the bug

subArray([0], 1, 0) returns [] in C# and an error in Javascript. See screen shots in LG playground. The reason this arises is when you have an array you are using to control a recursive function where you remove an element each time this is the expression you use.

Expected behavior

Both languages should return [].

Screenshots

Failure in JS.
image

Working in C#.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Area: Adaptive expressionThe issue is related to Adaptive expressionsbugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions