Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some issues in FalconJS

  • Loading branch information...
commit 5a049b0cd3208004fb8b846286a46bf5f4816daa 1 parent 9118470
@aharui aharui authored
View
2  compiler.js/bin/mxmlc
@@ -25,9 +25,9 @@
# In Windows Command Prompt, use mxmlc.bat instead.
#
+SCRIPT_HOME=`dirname $0`
if [ "x${FALCON_HOME}" = "x" ]
then
- SCRIPT_HOME=`dirname $0`
FALCON_HOME=${SCRIPT_HOME}/../../compiler
fi
View
16 compiler.js/src/org/apache/flex/compiler/internal/as/codegen/JSGeneratingReducer.java
@@ -6160,6 +6160,22 @@ public String transform_string_constant(IASNode iNode, String string_constant)
*/
// expression = string_constant
+ // (AJH) sometimes folded constants don't have quotes.
+ // Probably should be fixed somewhere else but hacking
+ // a solution here for now
+ if (string_constant.length() == 0)
+ {
+ string_constant = "";
+ }
+ else
+ {
+ char firstChar = string_constant.charAt(0);
+ if (firstChar != '\"' && firstChar != '\'')
+ {
+ // missing quotes, add them
+ string_constant = "\"" + string_constant + "\"";
+ }
+ }
result += string_constant;
return result;
View
2  compiler.js/src/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java
@@ -262,6 +262,8 @@ else if (path.indexOf(outputFolderPath) == 0)
{
path = path.replace(outputFolderPath, "");
}
+ // paths are actually URIs and always have forward slashes
+ path = path.replace('\\', '/');
return ".." + path;
}
private class GoogDep
Please sign in to comment.
Something went wrong with that request. Please try again.