Hi, > I'm definitely open to changing the compiler. Not sure what the right > answer is. Since we are theoretically writing AS, I'd lean away from > using "void 0”.
IMO I’d also avoid it as it looks a little odd. > So, I think in code that is used in both SWF and JS, the developer will > write > > if (_responseHeaders == null) > > Wouldn't that work on both platforms? JS yes but not if you use ===. let a undefined a == null true a === null false As null == undefined but null !== undefined in JS. > I'd be tempted to just have the transpiler skip reporting any error if you > write: > > if (_responseHeaders === undefined) Also good - btw it's already an option in the compiler: <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison> Thanks, Justin