This commit attempts to improve testing of strictFuncs and views, and
prevent regressions like #16873 (resolved by 0b01eddace).
We previously only explicitly tested strictFuncs and views with a
smaller number of stdlib modules, mostly in:
- tests/effects/tstrict_funcs.nim
- tests/views/tcan_compile_nim.nim
Note that this commit leaves the `pegs` module commented out; it
cannot currently be compiled with `--experimental:views` (see #16892).
Note also that this commit is not sufficient to test strictFuncs and
views, but it does detect a subset of problems.
21 lines
295 B
Nim
21 lines
295 B
Nim
discard """
|
|
cmd: "nim $target $options --hints:on --experimental:strictFuncs --experimental:views $file"
|
|
targets: "js"
|
|
"""
|
|
{.warning[UnusedImport]: off.}
|
|
|
|
import
|
|
asyncjs,
|
|
dom,
|
|
dom_extensions,
|
|
jsconsole,
|
|
jsffi,
|
|
jsre
|
|
|
|
import std/[
|
|
jsbigints,
|
|
]
|
|
|
|
import std/private/[
|
|
jsutils,
|
|
]
|