TypeScript/tests/baselines/reference/emitArrowFunctionWhenUsingArguments18.errors.txt
2015-04-16 13:08:57 -07:00

13 lines
684 B
Plaintext

tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts(5,22): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.
==== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts (1 errors) ====
function f() {
var { arguments: args } = { arguments };
if (Math.random()) {
return () => arguments;
~~~~~~~~~
!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.
}
}