Closed
Description
Discussed in #210
Originally posted by sebnozzi May 12, 2023
According to the documentation I should be able to call to_js
in a Float value, right?
https://ruby.github.io/ruby.wasm/Float.html
Then why does this throw an error?
require "js"
(Math::PI).to_js
Output:
(file): eval:3:in `<main>': undefined method `to_js' for 3.141592653589793:Float (NoMethodError)
(Exception)
Metadata
Metadata
Assignees
Labels
No labels