diff options
author | zah <zahary@gmail.com> | 2017-06-03 13:45:10 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-06-03 12:45:10 +0200 |
commit | 39aef12446b0e7f7dcc2222f358490a7ed2db685 (patch) | |
tree | 9f383710bca3790407ab8edc088448981d0e3e31 /tests/js | |
parent | eb8e267ff63eec0dd5279186a57d8af59f26c696 (diff) | |
download | Nim-39aef12446b0e7f7dcc2222f358490a7ed2db685.tar.gz |
review and merge zahary's work (#5849)
* proper indentation for the generated JS code * improved dead-code elimination for JavaScript * test the JS dead-code elimination A new test spec has been added - "maxcodesize". It specifies the maximum size of the generated code in bytes.
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/tjshello.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/js/tjshello.nim b/tests/js/tjshello.nim new file mode 100644 index 000000000..19e0b90ae --- /dev/null +++ b/tests/js/tjshello.nim @@ -0,0 +1,10 @@ +discard """ + output: "Hello World" + maxcodesize: 1000 + ccodecheck: "!@'function'" +""" + +import jsconsole + +console.log "Hello World" + |