js: improve tests + some docs (#16727)
* js: improve tests * _ * _ * _ * fixup
This commit is contained in:
parent
e4a529962e
commit
18e14f5920
5 changed files with 175 additions and 253 deletions
|
|
@ -180,6 +180,7 @@ proc `<` *(x, y: JsObject): JsObject {.importcpp: "(# < #)".}
|
|||
proc `>=` *(x, y: JsObject): JsObject {.importcpp: "(# >= #)".}
|
||||
proc `<=` *(x, y: JsObject): JsObject {.importcpp: "(# <= #)".}
|
||||
proc `**` *(x, y: JsObject): JsObject {.importcpp: "((#) ** #)".}
|
||||
# (#) needed, refs https://github.com/nim-lang/Nim/pull/16409#issuecomment-760550812
|
||||
proc `and`*(x, y: JsObject): JsObject {.importcpp: "(# && #)".}
|
||||
proc `or` *(x, y: JsObject): JsObject {.importcpp: "(# || #)".}
|
||||
proc `not`*(x: JsObject): JsObject {.importcpp: "(!#)".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue