cwebber pushed a commit to branch compile-to-js-merge
in repository guile.

commit 4ef95dd74cc98d5accc3359cf22e0cae0037e367
Author: Ian Price <[email protected]>
AuthorDate: Sun Aug 27 22:22:24 2017 +0100

    Handle more JavaScript binary operators
    
    * module/language/javascript.scm (print-binop): Handle `begin' & 
`instanceof'
---
 module/language/javascript.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/module/language/javascript.scm b/module/language/javascript.scm
index 4a49435..1e9e660 100644
--- a/module/language/javascript.scm
+++ b/module/language/javascript.scm
@@ -179,7 +179,8 @@
     ((or) (display "||" port))
     ((and) (display "&&" port))
     ((=) (display "==" port))
-    ((+ - < <= > >= ===) (format port "~a" op))
+    ((begin) (display "," port))
+    ((+ - < <= > >= === instanceof) (format port "~a" op))
     (else
      (throw 'unprintable-binop op))))
 

Reply via email to