1 2 3 4 5 6 7 8
// feature probe for 'let' support try { let x = 1; if (x !== 1) throw new Error('let failed'); console.log('OK'); } catch (e) { process.exit(1); }