<marioooo>
Looks like to_n is defined on Hash in stdlib/native.rb, but searching through source it doesn't seem to appear in opal.min.js or opal-parser.min.js so I'm a bit confused as to where in the process it should be ending up there...
<marioooo>
So, it appears the opal gem CLI doesn't do anything about the 'require' statements, and opal.min.js doesn't include the stdlib. Got things working by trying the static_applications.html.md guide...
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
supersym has quit [Ping timeout: 244 seconds]
supersym has joined #opal
shlee322 has joined #opal
shlee322 has quit [Client Quit]
shlee322 has joined #opal
<shlee322>
..
[spoiler] has joined #opal
shlee322 has quit [Quit: Page closed]
shlee322 has joined #opal
e_dub has quit [Quit: e_dub]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
supersym has quit [Ping timeout: 240 seconds]
meh` has joined #opal
[spoiler] has quit [Quit: Leaving]
elia has joined #opal
cpup has quit [Ping timeout: 244 seconds]
cpup has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Client Quit]
<marioooo>
.win 4
<marioooo>
Struggling a little with opal-browser, would anyone be able to point me in the right direction for getting it working through sprockets?
<marioooo>
I'm using the static application build method. require 'opal/browser' seems to be correct for the Rakefile, but all name variants I can think of within the .rb being compiled are throwing:
<marioooo>
Sprockets::FileNotFound: couldn't find file 'opal/browser' (for whichever require name I'm trying, i.e. 'browser', 'opal-browser', 'opal/browser')