Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: int is not defined #273

Closed
Incubatio opened this issue Aug 23, 2018 · 2 comments
Closed

ReferenceError: int is not defined #273

Incubatio opened this issue Aug 23, 2018 · 2 comments
Assignees

Comments

@Incubatio
Copy link

this line triggers the runtime error (in the title):

var a:Object = { a: int, b:int, c:int, d:int };

Obviously javascript doesn't have int or uint.
Maybe the the compiler could replace int and uint by Number in such case ?

In other cases int is just get trimmed out normally.

@greg-dove greg-dove self-assigned this Apr 1, 2019
@greg-dove
Copy link
Contributor

Just a quick update...
I have a proposed solution (which covers a number of general cases beyond the issue highlighted here) that also addresses this issue.
These assertions pass with the related code updates in the compiler and the framework:
https://github.com/apache/royale-asjs/blob/improvements/Language/manualtests/UnitTests/src/main/royale/flexUnitTests/github/GithubIssues2018.as#L56

This is in a separate branch at the time of posting this comment. I'll review it with others and hopefully it will make it into a future release.

@greg-dove
Copy link
Contributor

Fixed and merged into develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants