These are chat archives for opal/opal

26th
Oct 2016
Forrest Chang
@fkchang
Oct 26 2016 00:02
@elia any tips on how to debug opal-rspec-rails, maybe it's an opal-rspec debugging question though. Adding opal-rspec-rails to a reactrb/rails project, can't get it to run, looks like it's in something I've included via webpack, but I didn't think I was requiring that file
just this and it locks
TypeError: 'undefined' is not a function (evaluating 'RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/)')

  :63837
  :53491 in __webpack_require__
  :61939
  :62017
  :53491 in __webpack_require__
  :53599
  :53674
  :53491 in __webpack_require__
  :53551
  :53491 in __webpack_require__
  :53531
  :53491 in __webpack_require__
  :53518
  :53491 in __webpack_require__
  :53511
  :73109
Elia Schito
@elia
Oct 26 2016 00:10
@fkchang in which browser?
Forrest Chang
@fkchang
Oct 26 2016 00:10
this is the rake task, so phantomjs
Elia Schito
@elia
Oct 26 2016 00:11
Seems I whining about having no bind function on the regexp test method
So maybe that phantomjs is old? V1 maybe?
V2 should work fine now btw
Forrest Chang
@fkchang
Oct 26 2016 00:15
oh, yeah, I'm probalby running old phantomjs
I think I still need it for an old project though
on another note, I can't seem to run it in the browser for an error that I solved for phantomjs
i.e. it wasn't finding react.js, so I required it, but I'm getting the React not found in chrome
actually, nix that, figured that out
Elia Schito
@elia
Oct 26 2016 00:17
👍🏼
Forrest Chang
@fkchang
Oct 26 2016 00:18
I might be able to get it to work in chrome. Would there be a way to turn of source maps at run time, I generally want them, but specs run so slow in browser
Elia Schito
@elia
Oct 26 2016 00:20
You can try changing Opal::Config on the fly, could work with sprockets but have no idea about webpack
Adam Jahn
@ajjahn
Oct 26 2016 01:46

@elia: Any plans to implement URI?

@krainboltgreene I started about a year ago I think but there were too many issues with regexps…

@elia Can you confirm that URI is still missing due to Regexps?

Elia Schito
@elia
Oct 26 2016 05:50
@ajjahn yes, the MRI code is relying heavily on advanced regexps and can't be used as is