add simple writeStackTrace for JS backend (#16016)

* add simple writeStackTrace for JS backend

* add testcase for writeStackTrace

* changelog
This commit is contained in:
flywind 2020-11-25 02:45:06 +08:00 • committed by GitHub
commit 19e224866b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 1 deletions

View file

@ -47,6 +47,8 @@
- `repr` now doesn't insert trailing newline; previous behavior was very inconsistent,
see #16034. Use `-d:nimLegacyReprWithNewline` for previous behavior.
- `writeStackTrace` is available in JS backend now.
## Language changes
- `nimscript` now handles `except Exception as e`