From 163615b60682802d2d84cdcba4675536c1197b72 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 11 Apr 2016 14:36:49 -0700 Subject: [PATCH] Fix existing tests baseline with modified error message --- tests/baselines/reference/downlevelLetConst18.errors.txt | 8 ++++---- tests/baselines/reference/downlevelLetConst19.errors.txt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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);