summary refs log tree commit diff stats
path: root/tests/js/tjshello_stacktrace.nim
diff options
context:
space:
mode:
authorhlaaftana <10591326+hlaaftana@users.noreply.github.com>2020-04-29 21:55:09 +0300
committerGitHub <noreply@github.com>2020-04-29 20:55:09 +0200
commit707367e1ca231d964ba82a92b642eb5efdc1aa7c (patch)
tree9c65a95fea503194c8aa804832944e4c91797d06 /tests/js/tjshello_stacktrace.nim
parenta297c016fab069665aeb1125ff1c85b5e25e6a01 (diff)
downloadNim-707367e1ca231d964ba82a92b642eb5efdc1aa7c.tar.gz
many bugfixes for js (#14158)
* many bugfixes for js

fixes #12672, fixes #14153, closes #14123, closes #11331, fixes #11783, fixes #13966, fixes #14087, fixes #14117, closes #12256.

mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing.

* formatting fixes

* CI fixes

* more CI fixes
Diffstat (limited to 'tests/js/tjshello_stacktrace.nim')
-rw-r--r--tests/js/tjshello_stacktrace.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/js/tjshello_stacktrace.nim b/tests/js/tjshello_stacktrace.nim
new file mode 100644
index 000000000..d5e1c36eb
--- /dev/null
+++ b/tests/js/tjshello_stacktrace.nim
@@ -0,0 +1,9 @@
+discard """
+  output: "Hello World"
+  maxcodesize: 4500
+  ccodecheck: "!@'function'"
+"""
+
+import jsconsole
+
+console.log "Hello World"