mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* 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.
11 lines
135 B
Nim
11 lines
135 B
Nim
discard """
|
|
output: "Hello World"
|
|
maxcodesize: 1000
|
|
ccodecheck: "!@'function'"
|
|
"""
|
|
|
|
import jsconsole
|
|
|
|
console.log "Hello World"
|
|
|