//// [stringPropertyAccessWithError.ts]
var x = '';
var d = x['charAt']('invalid'); // error
//// [stringPropertyAccessWithError.js]