Closed ArneBab closed 4 years ago
I wondered why setTimeout was marked as not declared.
In the code, I found it only in js2-node-externs, but not in js2-browser-externs.
Also it is included in jslint-declaration-externs for browser, so I think that it’s possible that it should be in js2-browser-externs, too.
I activated js2-include-node-externs to work around this, but that’s only a workaround.
(defvar js2-jslint-declaration-externs `(("browser" . ,(mapcar 'symbol-name '(Audio clearInterval clearTimeout document event history Image location name navigator Option screen setInterval setTimeout XMLHttpRequest)))
Best wishes,
Somehow, that never came up. :)
Would you like to submit a PR?
Sorry that it took me a while … https://github.com/mooz/js2-mode/pull/556
I wondered why setTimeout was marked as not declared.
In the code, I found it only in js2-node-externs, but not in js2-browser-externs.
Also it is included in jslint-declaration-externs for browser, so I think that it’s possible that it should be in js2-browser-externs, too.
I activated js2-include-node-externs to work around this, but that’s only a workaround.
Best wishes,