|
1 |
| -tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(2,15): error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
2 |
| -tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(7,19): error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
3 |
| -tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(13,13): error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
4 |
| -tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(19,15): error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 1 | +tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(2,15): error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 2 | +tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(7,19): error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 3 | +tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(13,13): error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 4 | +tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts(19,15): error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
5 | 5 |
|
6 | 6 |
|
7 | 7 | ==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArgumentsES6.ts (4 errors) ====
|
8 | 8 | var a = () => {
|
9 | 9 | var arg = arguments[0]; // error
|
10 | 10 | ~~~~~~~~~
|
11 |
| -!!! error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 11 | +!!! error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
12 | 12 | }
|
13 | 13 |
|
14 | 14 | var b = function () {
|
15 | 15 | var a = () => {
|
16 | 16 | var arg = arguments[0]; // error
|
17 | 17 | ~~~~~~~~~
|
18 |
| -!!! error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 18 | +!!! error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
19 | 19 | }
|
20 | 20 | }
|
21 | 21 |
|
22 | 22 | function baz() {
|
23 | 23 | () => {
|
24 | 24 | var arg = arguments[0];
|
25 | 25 | ~~~~~~~~~
|
26 |
| -!!! error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 26 | +!!! error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
27 | 27 | }
|
28 | 28 | }
|
29 | 29 |
|
30 | 30 | function foo(inputFunc: () => void) { }
|
31 | 31 | foo(() => {
|
32 | 32 | var arg = arguments[0]; // error
|
33 | 33 | ~~~~~~~~~
|
34 |
| -!!! error TS9002: An argument object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
| 34 | +!!! error TS9002: The 'argument' object has different behaviour across Javascript versions. Use function expression or rest parameters instead |
35 | 35 | });
|
36 | 36 |
|
37 | 37 | function bar() {
|
|
0 commit comments