flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: [FlexJS] typeof X === 'undefined'
Date Sun, 19 Mar 2017 05:24:31 GMT
Hi,

> This can be got around by using “void 0” like so:
> if (_responseHeaders === void 0)

No my mistake the above fails to compile with a compiler error like this:

java.lang.ClassCastException: org.apache.flex.compiler.internal.tree.as.LiteralNode cannot
be cast to org.apache.flex.compiler.tree.as.ILiteralContainerNode
org.apache.flex.compiler.internal.codegen.as.ASBlockWalker.visitLiteral(ASBlockWalker.java:473)org.apache.flex.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:373)org.apache.flex.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85)org.apache.flex.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110)org.apache.flex.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:157)org.apache.flex.compiler.internal.codegen.js.jx.BinaryOperatorEmitter.super_emitBinaryOperator(BinaryOperatorEmitter.java:499)org.apache.flex.compiler.internal.codegen.js.jx.BinaryOperatorEmitter.emit(BinaryOperatorEmitter.java:339)

etc etc

Thanks,
Justin
Mime
View raw message