diff --git a/tests/baselines/reference/bigIntWithTargetES2016.symbols b/tests/baselines/reference/bigIntWithTargetES2016.symbols index 0f42e9612f5..c91cf1cca3b 100644 --- a/tests/baselines/reference/bigIntWithTargetES2016.symbols +++ b/tests/baselines/reference/bigIntWithTargetES2016.symbols @@ -1,13 +1,13 @@ === tests/cases/compiler/bigIntWithTargetES2016.ts === BigInt(1) ** BigInt(1); // should not error ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) let num = BigInt(2); >num : Symbol(num, Decl(bigIntWithTargetES2016.ts, 2, 3)) ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) num **= BigInt(2); // should not error >num : Symbol(num, Decl(bigIntWithTargetES2016.ts, 2, 3)) ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) diff --git a/tests/baselines/reference/bigIntWithTargetLessThanES2016.errors.txt b/tests/baselines/reference/bigIntWithTargetLessThanES2016.errors.txt index b014370c015..ea84f54122f 100644 --- a/tests/baselines/reference/bigIntWithTargetLessThanES2016.errors.txt +++ b/tests/baselines/reference/bigIntWithTargetLessThanES2016.errors.txt @@ -1,14 +1,14 @@ -tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(1,1): error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. -tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(4,1): error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. +tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(1,1): error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. +tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(4,1): error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. ==== tests/cases/compiler/bigIntWithTargetLessThanES2016.ts (2 errors) ==== BigInt(1) ** BigInt(1); // should error ~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. +!!! error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. let foo = BigInt(2); foo **= BigInt(2); // should error ~~~~~~~~~~~~~~~~~ -!!! error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. +!!! error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later. \ No newline at end of file diff --git a/tests/baselines/reference/bigIntWithTargetLessThanES2016.symbols b/tests/baselines/reference/bigIntWithTargetLessThanES2016.symbols index 2285bf9a67e..8c043322582 100644 --- a/tests/baselines/reference/bigIntWithTargetLessThanES2016.symbols +++ b/tests/baselines/reference/bigIntWithTargetLessThanES2016.symbols @@ -1,13 +1,13 @@ === tests/cases/compiler/bigIntWithTargetLessThanES2016.ts === BigInt(1) ** BigInt(1); // should error ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) let foo = BigInt(2); >foo : Symbol(foo, Decl(bigIntWithTargetLessThanES2016.ts, 2, 3)) ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --)) foo **= BigInt(2); // should error >foo : Symbol(foo, Decl(bigIntWithTargetLessThanES2016.ts, 2, 3)) ->BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --)) +>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))