summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-11 02:22:13 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-11 02:22:13 +0300
commit03770daba44fb9ac5c21729d0b32cda10f8767bd (patch)
treeeb8c81da94064377cdd3678ef4bd5ef7c1386b92 /lib
parent54a1d9c16a9589dc60919311588a77e99fa83de5 (diff)
downloadNim-03770daba44fb9ac5c21729d0b32cda10f8767bd.tar.gz
allow StmtLists to pass through semExprWithType
This fix was necessary in order to fix the lambda lifting used in
the "jsffi" module, which relies on turning nkStmtList into nkLambda
in a catch-all dot operator.
Diffstat (limited to 'lib')
-rw-r--r--lib/js/jsffi.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/js/jsffi.nim b/lib/js/jsffi.nim
index e0310e33a..3b3f38e41 100644
--- a/lib/js/jsffi.nim
+++ b/lib/js/jsffi.nim
@@ -78,6 +78,7 @@ type
     ## Statically typed wrapper around a JavaScript object.
   NotString = concept c
     c isnot string
+  js* = JsObject
 
 var jsarguments* {.importc: "arguments", nodecl}: JsObject
   ## JavaScript's arguments pseudo-variable
@@ -133,10 +134,6 @@ proc `/=` *(x, y: JsObject): JsObject {. importcpp: "(# /= #)", discardable .}
 proc `%=` *(x, y: JsObject): JsObject {. importcpp: "(# %= #)", discardable .}
 proc `++` *(x: JsObject): JsObject    {. importcpp: "(++#)" .}
 proc `--` *(x: JsObject): JsObject    {. importcpp: "(--#)" .}
-# proc `==` *(x, y: JsObject): JsObject {. importcpp: "(# == #)" .}
-# proc `===`*(x, y: JsObject): JsObject {. importcpp: "(# === #)" .}
-# proc `!=` *(x, y: JsObject): JsObject {. importcpp: "(# != #)" .}
-# proc `!==`*(x, y: JsObject): JsObject {. importcpp: "(# !== #)" .}
 proc `>`  *(x, y: JsObject): JsObject {. importcpp: "(# > #)" .}
 proc `<`  *(x, y: JsObject): JsObject {. importcpp: "(# < #)" .}
 proc `>=` *(x, y: JsObject): JsObject {. importcpp: "(# >= #)" .}