You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/08/08 22:57:21 UTC

[whimsy] branch master updated: ruby2js 4.1.1+ causes syntax error

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new bde6e65  ruby2js 4.1.1+ causes syntax error
bde6e65 is described below

commit bde6e651fa77632b0c9e86fde109a1e7e3473446
Author: Sebb <se...@apache.org>
AuthorDate: Sun Aug 8 23:57:13 2021 +0100

    ruby2js 4.1.1+ causes syntax error
    
    Events.broadcast(function(, ) {
                                            ^
    SyntaxError: Unexpected token ','
        at new Script (vm.js:88:7)
---
 www/board/agenda/Gemfile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/Gemfile b/www/board/agenda/Gemfile
index 2c15597..a20cfbd 100644
--- a/www/board/agenda/Gemfile
+++ b/www/board/agenda/Gemfile
@@ -13,7 +13,12 @@ end
 
 gem 'rake'
 gem 'wunderbar'
-gem 'ruby2js'
+# ruby2js 4.1.1+ are broken:
+#               Events.broadcast(function(, ) {
+#                                         ^
+# SyntaxError: Unexpected token ','
+#     at new Script (vm.js:88:7)
+gem 'ruby2js', '4.1.0'
 gem 'sinatra', '~> 2.0'
 gem 'nokogumbo'
 gem 'execjs'