Skip to content

Commit 42c66a1

Browse files
Add/rename baselines.
1 parent fc7be36 commit 42c66a1

File tree

76 files changed

+948
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+948
-19
lines changed

tests/baselines/reference/emitArrowFunctionWhenUsingArgumentsES6.errors.txt renamed to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.errors.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(7,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
3-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(13,13): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
4-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(19,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
1+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts(7,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
3+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts(13,13): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
4+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts(19,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
55

66

7-
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts (4 errors) ====
7+
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts (4 errors) ====
88
var a = () => {
99
var arg = arguments[0]; // error
1010
~~~~~~~~~

tests/baselines/reference/emitArrowFunctionWhenUsingArgumentsES6.js renamed to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [emitArrowFunctionWhenUsingArgumentsES6.ts]
1+
//// [emitArrowFunctionWhenUsingArguments01.ts]
22
var a = () => {
33
var arg = arguments[0]; // error
44
}
@@ -31,28 +31,28 @@ function bar() {
3131
}
3232
}
3333

34-
//// [emitArrowFunctionWhenUsingArgumentsES6.js]
35-
var a = () => {
34+
//// [emitArrowFunctionWhenUsingArguments01.js]
35+
var a = function () {
3636
var arg = arguments[0]; // error
3737
};
3838
var b = function () {
39-
var a = () => {
39+
var a = function () {
4040
var arg = arguments[0]; // error
4141
};
4242
};
4343
function baz() {
44-
(() => {
44+
(function () {
4545
var arg = arguments[0];
4646
});
4747
}
4848
function foo(inputFunc) { }
49-
foo(() => {
49+
foo(function () {
5050
var arg = arguments[0]; // error
5151
});
5252
function bar() {
5353
var arg = arguments[0]; // no error
5454
}
55-
(() => {
55+
(function () {
5656
function foo() {
5757
var arg = arguments[0]; // no error
5858
}

tests/baselines/reference/emitArrowFunctionWhenUsingArguments.errors.txt renamed to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01_ES6.errors.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments.ts(7,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
3-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments.ts(13,13): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
4-
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments.ts(19,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
1+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts(7,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
3+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts(13,13): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
4+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts(19,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
55

66

7-
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments.ts (4 errors) ====
7+
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts (4 errors) ====
88
var a = () => {
99
var arg = arguments[0]; // error
1010
~~~~~~~~~

tests/baselines/reference/emitArrowFunctionWhenUsingArguments.js renamed to tests/baselines/reference/emitArrowFunctionWhenUsingArguments01_ES6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [emitArrowFunctionWhenUsingArguments.ts]
1+
//// [emitArrowFunctionWhenUsingArguments01_ES6.ts]
22
var a = () => {
33
var arg = arguments[0]; // error
44
}
@@ -31,7 +31,7 @@ function bar() {
3131
}
3232
}
3333

34-
//// [emitArrowFunctionWhenUsingArguments.js]
34+
//// [emitArrowFunctionWhenUsingArguments01_ES6.js]
3535
var a = () => {
3636
var arg = arguments[0]; // error
3737
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2+
3+
4+
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts (1 errors) ====
5+
6+
var a = () => arguments;
7+
~~~~~~~~~
8+
!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//// [emitArrowFunctionWhenUsingArguments02.ts]
2+
3+
var a = () => arguments;
4+
5+
//// [emitArrowFunctionWhenUsingArguments02.js]
6+
var a = function () { return arguments; };
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02_ES6.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2+
3+
4+
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02_ES6.ts (1 errors) ====
5+
6+
var a = () => arguments;
7+
~~~~~~~~~
8+
!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//// [emitArrowFunctionWhenUsingArguments02_ES6.ts]
2+
3+
var a = () => arguments;
4+
5+
//// [emitArrowFunctionWhenUsingArguments02_ES6.js]
6+
var a = () => arguments;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts(3,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
2+
3+
4+
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts (1 errors) ====
5+
6+
var arguments;
7+
var a = () => arguments;
8+
~~~~~~~~~
9+
!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//// [emitArrowFunctionWhenUsingArguments03.ts]
2+
3+
var arguments;
4+
var a = () => arguments;
5+
6+
//// [emitArrowFunctionWhenUsingArguments03.js]
7+
var arguments;
8+
var a = function () { return arguments; };

0 commit comments

Comments
 (0)