Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

patch Opal String#to_json #16

Open
catmando opened this issue May 5, 2018 · 0 comments
Open

patch Opal String#to_json #16

catmando opened this issue May 5, 2018 · 0 comments

Comments

@catmando
Copy link
Contributor

catmando commented May 5, 2018

class String
  def to_json
    `JSON.stringify(#{self})`
   end
end

opal will eventually catch up, but for now we will provide the courtesy patch

catmando added a commit that referenced this issue May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant