Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 28, 2022
1 parent c6fe127 commit a275fd6
Show file tree
Hide file tree
Showing 983 changed files with 59,360 additions and 49,505 deletions.
4 changes: 2 additions & 2 deletions crates/swc/tests/tsc-references/1.0lib-noErrors.1.normal.js
@@ -1,8 +1,8 @@
//// [1.0lib-noErrors.ts]
//!
//! x 'eval' and 'arguments' cannot be used as a binding identifier in strict mode
//! ,-[26:3]
//! 26 | * Evaluates JavaScript code and executes it.
//! ,-[26:1]
//! 26 | * Evaluates JavaScript code and executes it.
//! 27 | * @param x A String value that contains valid JavaScript code.
//! 28 | */
//! 29 | declare function eval(x: string): any;
Expand Down
4 changes: 2 additions & 2 deletions crates/swc/tests/tsc-references/1.0lib-noErrors.2.minified.js
@@ -1,8 +1,8 @@
//// [1.0lib-noErrors.ts]
//!
//! x 'eval' and 'arguments' cannot be used as a binding identifier in strict mode
//! ,-[26:3]
//! 26 | * Evaluates JavaScript code and executes it.
//! ,-[26:1]
//! 26 | * Evaluates JavaScript code and executes it.
//! 27 | * @param x A String value that contains valid JavaScript code.
//! 28 | */
//! 29 | declare function eval(x: string): any;
Expand Down
Expand Up @@ -24,8 +24,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[3:5]
//! 3 | static get a(): string;
//! ,-[3:1]
//! 3 | static get a(): string;
//! 4 | static set a(value: string);
//! 5 |
//! 6 | private static get b(): string;
Expand All @@ -36,8 +36,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[4:5]
//! 4 | static set a(value: string);
//! ,-[4:1]
//! 4 | static set a(value: string);
//! 5 |
//! 6 | private static get b(): string;
//! 7 | private static set b(foo: string);
Expand All @@ -48,8 +48,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[6:5]
//! 6 | private static get b(): string;
//! ,-[6:1]
//! 6 | private static get b(): string;
//! 7 | private static set b(foo: string);
//! 8 |
//! 9 | get x(): string;
Expand All @@ -60,8 +60,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[7:5]
//! 7 | private static set b(foo: string);
//! ,-[7:1]
//! 7 | private static set b(foo: string);
//! 8 |
//! 9 | get x(): string;
//! 10 | set x(value: string);
Expand All @@ -72,8 +72,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[9:5]
//! 9 | get x(): string;
//! ,-[9:1]
//! 9 | get x(): string;
//! 10 | set x(value: string);
//! 11 |
//! 12 | private get y(): string;
Expand All @@ -83,8 +83,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[10:5]
//! 10 | set x(value: string);
//! ,-[10:1]
//! 10 | set x(value: string);
//! 11 |
//! 12 | private get y(): string;
//! 13 | private set y(foo: string);
Expand Down
Expand Up @@ -24,8 +24,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[3:5]
//! 3 | static get a(): string;
//! ,-[3:1]
//! 3 | static get a(): string;
//! 4 | static set a(value: string);
//! 5 |
//! 6 | private static get b(): string;
Expand All @@ -36,8 +36,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[4:5]
//! 4 | static set a(value: string);
//! ,-[4:1]
//! 4 | static set a(value: string);
//! 5 |
//! 6 | private static get b(): string;
//! 7 | private static set b(foo: string);
Expand All @@ -48,8 +48,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[6:5]
//! 6 | private static get b(): string;
//! ,-[6:1]
//! 6 | private static get b(): string;
//! 7 | private static set b(foo: string);
//! 8 |
//! 9 | get x(): string;
Expand All @@ -60,8 +60,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[7:5]
//! 7 | private static set b(foo: string);
//! ,-[7:1]
//! 7 | private static set b(foo: string);
//! 8 |
//! 9 | get x(): string;
//! 10 | set x(value: string);
Expand All @@ -72,8 +72,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[9:5]
//! 9 | get x(): string;
//! ,-[9:1]
//! 9 | get x(): string;
//! 10 | set x(value: string);
//! 11 |
//! 12 | private get y(): string;
Expand All @@ -83,8 +83,8 @@
//! `----
//!
//! x jsc.target should be es5 or upper to use getter / setter
//! ,-[10:5]
//! 10 | set x(value: string);
//! ,-[10:1]
//! 10 | set x(value: string);
//! 11 |
//! 12 | private get y(): string;
//! 13 | private set y(foo: string);
Expand Down
Expand Up @@ -15,7 +15,9 @@
//! `----
//!
//! x Import assignment cannot be used when targeting ECMAScript modules. Consider using `import * as ns from "mod"`, `import {a} from "mod"`, `import d from "mod"`, or another module format instead.
//! ,-[5:1]
//! ,-[3:1]
//! 3 |
//! 4 |
//! 5 | // Ambient external module members are always exported with or without export keyword when module lacks export assignment
//! 6 | import imp3 = require('equ2');
//! : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Expand Up @@ -13,7 +13,9 @@
//! `----
//!
//! x Import assignment cannot be used when targeting ECMAScript modules. Consider using `import * as ns from "mod"`, `import {a} from "mod"`, `import d from "mod"`, or another module format instead.
//! ,-[5:1]
//! ,-[3:1]
//! 3 |
//! 4 |
//! 5 | // Ambient external module members are always exported with or without export keyword when module lacks export assignment
//! 6 | import imp3 = require('equ2');
//! : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface01.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var interface: number, I: string;
//! : ^^^^^^^^^
//! 3 |
Expand All @@ -11,7 +12,8 @@
//!
//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string,
//! | regexp, ` for template literal, (, or an identifier
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var interface: number, I: string;
//! 3 |
//! 4 | interface // This should be the identifier 'interface'
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface01.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var interface: number, I: string;
//! : ^^^^^^^^^
//! 3 |
Expand All @@ -11,7 +12,8 @@
//!
//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string,
//! | regexp, ` for template literal, (, or an identifier
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var interface: number, I: string;
//! 3 |
//! 4 | interface // This should be the identifier 'interface'
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface02.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | function f(interface: number, I: string) {
//! : ^^^^^^^^^
//! 3 | interface // This should be the identifier 'interface'
Expand All @@ -11,7 +12,8 @@
//!
//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string,
//! | regexp, ` for template literal, (, or an identifier
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | function f(interface: number, I: string) {
//! 3 | interface // This should be the identifier 'interface'
//! : ^^^^^^^^^
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface02.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | function f(interface: number, I: string) {
//! : ^^^^^^^^^
//! 3 | interface // This should be the identifier 'interface'
Expand All @@ -11,7 +12,8 @@
//!
//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string,
//! | regexp, ` for template literal, (, or an identifier
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | function f(interface: number, I: string) {
//! 3 | interface // This should be the identifier 'interface'
//! : ^^^^^^^^^
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface03.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var interface: number, I: string;
//! : ^^^^^^^^^
//! 3 |
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface03.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var interface: number, I: string;
//! : ^^^^^^^^^
//! 3 |
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface04.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var declare: boolean, interface: number, I: string;
//! : ^^^^^^^^^
//! 3 |
Expand Down
@@ -1,7 +1,8 @@
//// [asiPreventsParsingAsInterface04.ts]
//!
//! x `interface` cannot be used as an identifier in strict mode
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var declare: boolean, interface: number, I: string;
//! : ^^^^^^^^^
//! 3 |
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction5_es2017.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction5_es2017.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction5_es5.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction5_es5.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction5_es6.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction5_es6.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction6_es2017.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (a = await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction6_es2017.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (a = await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction6_es5.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (a = await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down
@@ -1,7 +1,8 @@
//// [asyncArrowFunction6_es5.ts]
//!
//! x `await` cannot be used as an identifier in an async context
//! ,-[2:1]
//! ,-[1:1]
//! 1 |
//! 2 | var foo = async (a = await): Promise<void> => {
//! : ^^^^^
//! 3 | }
Expand Down

0 comments on commit a275fd6

Please sign in to comment.