summary refs log tree commit diff stats
path: root/tests/js/tmangle.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/tmangle.nim')
-rw-r--r--tests/js/tmangle.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/js/tmangle.nim b/tests/js/tmangle.nim
index 393043722..caaa15fa1 100644
--- a/tests/js/tmangle.nim
+++ b/tests/js/tmangle.nim
@@ -62,8 +62,8 @@ block:
     result = result and obj1.`&&`.addr[] == "bar".cstring
     result = result and obj2.`if` == 0
     result = result and obj2.`for` == 0
-    result = result and obj2.`==`.len == 0
-    result = result and obj2.`&&`.len == 0
+    result = result and obj2.`==`.isNil
+    result = result and obj2.`&&`.isNil
   echo test()
 
 # Test codegen for fields with uppercase letters: