Files
tsgo/testdata/baselines/reference/submodule/compiler/argumentsReferenceInObjectLiteral_Js(alwaysstrict=true).errors.txt

35 lines
912 B
Plaintext

/a.js(16,9): error TS18004: No value exists in scope for the shorthand property 'arguments'. Either declare one or provide an initializer.
/a.js(21,11): error TS1100: Invalid use of 'arguments' in strict mode.
==== /a.js (2 errors) ====
const a = () => {
return {
arguments: [],
};
};
const b = () => {
const c = {
arguments: [],
}
return c;
};
const c = () => {
return {
arguments,
~~~~~~~~~
!!! error TS18004: No value exists in scope for the shorthand property 'arguments'. Either declare one or provide an initializer.
};
}
const d = () => {
const arguments = undefined;
~~~~~~~~~
!!! error TS1100: Invalid use of 'arguments' in strict mode.
return {
arguments,
};
}