Skip to content

Invalid Syntax Succeeds in Compilation, but Doesn't Load at Runtime #186

@brianraymes

Description

@brianraymes

I've been finding random compilation issues that should be invalid, but seem to succeed.

Steps to Reproduce

Accidentally added two dots in a binding within MXML. In my case, I performed a refactor that mistakenly left two dots; an easy mistake to make.

"{someObject..someValue}"

Expected Results

Compilation should fail, or at least throw a warning.

Actual Results

Compiles successfully, but the resulting debug JS file is not usable at runtime without any warning or error. I'm not sure if it's failing to load, or some other issue.

Workaround

None that I know of at this time.

Comments

A mistake like this is likely an edge case, but is an easy mistake to make. The cost of running into it was rather large as it was hard to track down and took significant time to find/fix as there are no errors.

FYI, I am using vscode-as3mxml. I'm not sure if that is relevant or not with issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions