These are chat archives for opal/opal
DotJsSyntaxrewriter - https://github.com/opal/opal/blob/master/lib/opal/rewriters/dot_js_syntax.rb
in the JS console I see Opal.JS.$call is defined
Opal has a
JS module and
$call most probably is a method missing stub
expect_evaluate_ruby do Element[`document`] end.to eq...
document] gets unparsed by unparser, thats why it fails
it gets unparsed to
which, as weird as the syntax is, should be considered functionally synonymous to
@fragmentsdirectly, which is just a array
def escape_jsxstr source source.gsub(/^(?<start>.*)`(?<contents>.+)`(?<end>.*)$/, '\k<start>\'!JSXSTR!\k<contents>!JSXSTR!\'\k<end>') end def unescape_jsxstr source source.gsub(/[',"]!JSXSTR!/, "`").gsub(/!JSXSTR![',"]/, "`") end
:topnode is virtual, we create it in the compiler, so you won't see it in the rewriter
process(node)that prepends some AST into this node and simply returns a result
@eiko What's the issue with the backticks?
works fine for me