estanglerbm opened a new issue #987:
URL: https://github.com/apache/royale-asjs/issues/987
Test case:
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.apache.org/royale/spark">
<s:Label text="Line1 Line2" />
</s:Application>
```
Causes this error on load:
```
Uncaught SyntaxError: '' string literal contains an unescaped line break
TestSparkLabelBad.js:64:16
enter resource://devtools/server/actors/utils/event-loop.js:79
enter self-hosted:1161
_pushThreadPause resource://devtools/server/actors/thread.js:310
onExceptionUnwind resource://devtools/server/actors/thread.js:2013
onExceptionUnwind self-hosted:1161
TestSparkLabel_mx_managers_SystemManager
.../bin/js-debug/TestSparkLabel_mx_managers_SystemManager.js:231
<anonymous> .../bin/js-debug/index.html:393
enter resource://devtools/server/actors/utils/event-loop.js:79
enter self-hosted:1161
```
Because this was generated during the compile:
```
Object.defineProperties(TestSparkLabelBad.prototype, /** @lends
{TestSparkLabelBad.prototype} */ {
'MXMLDescriptor': {
/** @this {TestSparkLabelBad} */
get: function() {
if (this.mxmldd == undefined)
{
/** @type {Array} */
var arr =
TestSparkLabelBad.superClass_.get__MXMLDescriptor.apply(this);
/** @type {Array} */
var data = [
spark.components.Label,
2,
'_id',
true,
'$ID_12_0',
'text',
true,
'Line1
Line2',
0,
0,
null
];
if (arr)
this.mxmldd = arr.concat(data);
else
this.mxmldd = data;
}
return this.mxmldd;
}
}
});
```
----------------------------------------------------------------
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]