diff --git a/tests/baselines/reference/downlevelLetConst18.errors.txt b/tests/baselines/reference/downlevelLetConst18.errors.txt index e1abafd86c4..5b91498f173 100644 --- a/tests/baselines/reference/downlevelLetConst18.errors.txt +++ b/tests/baselines/reference/downlevelLetConst18.errors.txt @@ -1,5 +1,5 @@ -tests/cases/compiler/downlevelLetConst18.ts(5,14): error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode. -tests/cases/compiler/downlevelLetConst18.ts(9,14): error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode. +tests/cases/compiler/downlevelLetConst18.ts(5,14): error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. +tests/cases/compiler/downlevelLetConst18.ts(9,14): error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. ==== tests/cases/compiler/downlevelLetConst18.ts (2 errors) ==== @@ -9,13 +9,13 @@ tests/cases/compiler/downlevelLetConst18.ts(9,14): error TS1250: In ES5 or lower for (let x; ;) { function foo() { x }; ~~~ -!!! error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode. +!!! error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. } for (let x; ;) { function foo1() { x }; ~~~~ -!!! error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode. +!!! error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. } for (let x; ;) { diff --git a/tests/baselines/reference/downlevelLetConst19.errors.txt b/tests/baselines/reference/downlevelLetConst19.errors.txt index 03ad2dd4706..ef8583347bd 100644 --- a/tests/baselines/reference/downlevelLetConst19.errors.txt +++ b/tests/baselines/reference/downlevelLetConst19.errors.txt @@ -1,4 +1,4 @@ -tests/cases/compiler/downlevelLetConst19.ts(9,14): error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode. +tests/cases/compiler/downlevelLetConst19.ts(9,14): error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. ==== tests/cases/compiler/downlevelLetConst19.ts (1 errors) ==== @@ -12,7 +12,7 @@ tests/cases/compiler/downlevelLetConst19.ts(9,14): error TS1250: In ES5 or lower function b() { ~ -!!! error TS1250: In ES5 or lower, function declarations are not allowed in block scope in strict mode. +!!! error TS1250: Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. { let x; use(x);