opal/opal_irb.rb
# 'require' a javascrit filename over the internet, synchronously.
# Chrome complains that this is deprecated, so it might go away
'require' a javascrit filename over the internet, synchronously.
Chrome complains that this is deprecated, so it might go away
' require ' a javascrit filename over the internet synchronously . Chrome complains that this is deprecated so it might go away
def require_js_sync(url)
  %x|
     var r = new XMLHttpRequest();
     r.open("GET", url, false);
     r.send('');
     window.eval(r.responseText)
  |
  nil
end
def require_js_sync ( url ) %x| 
     var r = new XMLHttpRequest();
     r.open("GET", url, false);
     r.send('');
     window.eval(r.responseText)
   | nil end
'require' a javascrit filename over the internet, synchronously.
' require ' a javascrit filename over the internet synchronously .
url