summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorquantimnot <54247259+quantimnot@users.noreply.github.com>2022-05-23 00:17:32 -0400
committerGitHub <noreply@github.com>2022-05-23 06:17:32 +0200
commit05c0419658e3f97c29a12a16e99c0f8b842622c8 (patch)
tree7024faf425c8c546e1d5d06b3dcdc7b6c2f29760 /tests
parenta8426fc7890f1bea1c507ddb2fe42662f7a574f8 (diff)
downloadNim-05c0419658e3f97c29a12a16e99c0f8b842622c8.tar.gz
Fix global destructor injection for JS backend (#19797)
* Fix global destructor injection for JS backend

* Moved global destructors injection before the final call to transform and
  generate JS code. It had previously been after and thus not no JS was
  generated for them.
* Added some internal documentation of `jsgen`.
* Enable a current destructor test to cover the JS backend as well.
* Fixes the JS aspect of #17237.

* Fixed global destructor injection order for JS backend

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/t5342.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/destructor/t5342.nim b/tests/destructor/t5342.nim
index 19354ea64..0acd5ef9d 100644
--- a/tests/destructor/t5342.nim
+++ b/tests/destructor/t5342.nim
@@ -1,5 +1,6 @@
 discard """
-  matrix: "--gc:refc; --gc:arc"
+  matrix: "--mm:refc; --mm:arc"
+  targets: "c js"
   output: '''
 1
 2