mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
ESLint won’t convert these automatically because it can’t rule out a
behavior difference arising from an access to a self-referential var
before it’s initialized:
> var x = (f => f())(() => x);
undefined
> let y = (f => f())(() => y);
Thrown:
ReferenceError: Cannot access 'y' before initialization
at repl:1:26
at repl:1:15
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
|
||
|---|---|---|
| .. | ||
| bugdown_assert.js | ||
| finder.js | ||
| handlebars.js | ||
| i18n.js | ||
| index.js | ||
| mdiff.js | ||
| namespace.js | ||
| stub.js | ||
| zblueslip.js | ||
| zjquery.js | ||