mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
912 B
Plaintext
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,
|
|
};
|
|
}
|
|
|