Note the detachedComments and copyright headers comment emitting is not part of this change
18 lines
417 B
TypeScript
18 lines
417 B
TypeScript
//// [localVariablesReturnedFromCatchBlocks.ts]
|
|
function f() {
|
|
try {
|
|
} catch (e) {
|
|
var stack2 = e.stack;
|
|
return stack2; //error TS2095: Could not find symbol 'stack2'.
|
|
}
|
|
}
|
|
|
|
//// [localVariablesReturnedFromCatchBlocks.js]
|
|
function f() {
|
|
try {
|
|
}
|
|
catch (e) {
|
|
var stack2 = e.stack;
|
|
return stack2; //error TS2095: Could not find symbol 'stack2'.
|
|
}
|
|
}
|