estanglerbm opened a new issue #996:
URL: https://github.com/apache/royale-asjs/issues/996
For this code:
```
var props:Proxy = new Proxy();
props["test"] = new Proxy();
props["test"]["width"] = 10;
```
The compiler generates this:
```
props.setProperty("test", new org.apache.royale.utils.Proxy());
props.getProperty('"test"')["width"] = 10;
```
which results in this error:
```
Uncaught TypeError: props.getProperty(...) is undefined
```
The problem is that the get is embedding the double quotes. Is that
expected?
If I can set it, it seems like I should be able to get it with the same
value. (Of course I could filter out the double quotes in the getProperty(),
but is that right?)
---
If I change the code to:
```
var props:Proxy = new Proxy();
props["test"] = new Proxy();
(props["test"] as Proxy)["width"] = 10;
```
then it generates:
```
props.setProperty("test", new org.apache.royale.utils.Proxy());
org.apache.royale.utils.Language.as(props.getProperty('"test"'),
org.apache.royale.utils.Proxy).setProperty("width", 10);
```
which is still wrong.
I understand what was said in #977.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]