avoided JS compile barf in JS generation and fix compile error of Node vals in generated DOM API

This commit is contained in:
James Strachan
2012-05-31 09:26:55 +01:00
parent fe68aeaa78
commit c4439f33f0
4 changed files with 34 additions and 45 deletions
@@ -105,7 +105,8 @@ public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
}
// To report NO_CLASS_OBJECT when no namespace found
if (classifier != null) {
context.trace.report(NO_CLASS_OBJECT.on(expression, classifier));
// TODO is this really required? seems to break "Node.ELEMENT_NODE" expressions
// context.trace.report(NO_CLASS_OBJECT.on(expression, classifier));
context.trace.record(REFERENCE_TARGET, expression, classifier);
return classifier.getDefaultType();
}