Closed borkdude closed 1 year ago
When evaluating this function:
(fn [] (when js/document (js/document.getElementById "foo")))
in SCI, SCI pre-walks js/document.getElementById for performance reasons, but when running this expression in Node.js, where js/document doesn't exist, this gives troubles and prevents one to write JS-portable code.
js/document.getElementById
js/document
cc @mk
When evaluating this function:
in SCI, SCI pre-walks
js/document.getElementById
for performance reasons, but when running this expression in Node.js, wherejs/document
doesn't exist, this gives troubles and prevents one to write JS-portable code.cc @mk