TypeScript/tests/baselines/reference/typecheckIfCondition.js
2014-07-12 17:30:19 -07:00

16 lines
345 B
JavaScript

//// [typecheckIfCondition.ts]
// both uses of module should be an undefined symbol
function myWrapper()
{
if (!module.exports) module.exports = "";
var x = null; // don't want to baseline output
}
//// [typecheckIfCondition.js]
function myWrapper() {
if (!module.exports)
module.exports = "";
var x = null;
}