fix: refine conditional for lent2 template to exclude js and nimscript

This commit is contained in:
ringabout
2026-06-04 19:09:19 +08:00
parent 3df80088d0
commit e810f99246

View File

@@ -3,7 +3,7 @@
when defined(nimPreviewSlimSystem):
import std/assertions
when not defined(nimNoLentIterators):
when (not defined(nimNoLentIterators)) and not defined(js) and not defined(nimscript):
template lent2(T): untyped = lent T
else:
template lent2(T): untyped = T