jashkenas/coffee-script — Issue #1992: Existence operator does not check for 'undefined'
Author: lightblade
Created: 2011-12-31 03:15:56+00:00
State: open

stringy = JSON.stringify (@script?.runInNewContext @context)

compiles to

var stringy, _ref;

stringy = JSON.stringify((_ref = this.script) != null ? _ref.runInNewContext(this.context) : void 0);

The issue is that if ``this.script`` is undefined and the existence operator would evaluate to ``true``.

I think #1215 may be a related issue