1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 21:10:27 +02:00

Handle more JavaScript binary operators

* module/language/javascript.scm (print-binop): Handle `begin' & `instanceof'
This commit is contained in:
Ian Price 2017-08-27 22:22:24 +01:00
parent d4ef33f6cf
commit 4ef95dd74c

View file

@ -179,7 +179,8 @@
((or) (display "||" port)) ((or) (display "||" port))
((and) (display "&&" port)) ((and) (display "&&" port))
((=) (display "==" port)) ((=) (display "==" port))
((+ - < <= > >= ===) (format port "~a" op)) ((begin) (display "," port))
((+ - < <= > >= === instanceof) (format port "~a" op))
(else (else
(throw 'unprintable-binop op)))) (throw 'unprintable-binop op))))