diff options
author | Alexander Ivanov <alehander42@gmail.com> | 2018-12-30 03:48:37 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-12-30 02:48:37 +0100 |
commit | aadbdd6b066bc7251c6d24bb5ef5ce3f940825ec (patch) | |
tree | b61370e62eb33269bfbcf046fd3e9de84e08df41 /tests/js/tjsffi.nim | |
parent | 062d7e3a398f7afb039ce568cceb32e908e3340e (diff) | |
download | Nim-aadbdd6b066bc7251c6d24bb5ef5ce3f940825ec.tar.gz |
Support undefined in isNil (#9960)
Diffstat (limited to 'tests/js/tjsffi.nim')
-rw-r--r-- | tests/js/tjsffi.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/js/tjsffi.nim b/tests/js/tjsffi.nim index 2420c60f6..8bd40a3c4 100644 --- a/tests/js/tjsffi.nim +++ b/tests/js/tjsffi.nim @@ -22,6 +22,13 @@ true Event { name: 'click: test' } Event { name: 'reloaded: test' } Event { name: 'updates: test' } +true +true +true +true +true +true +true ''' """ @@ -317,3 +324,12 @@ block: jslib.subscribe("updates"): console.log jsarguments[0] +block: + + echo jsUndefined == jsNull + echo jsUndefined == nil + echo jsNull == nil + echo jsUndefined.isNil + echo jsNull.isNil + echo jsNull.isNull + echo jsUndefined.isUndefined |