Skip to content

Commit

Permalink
JSON.from_object should pass in js object for literals
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 26, 2013
1 parent 2dd4437 commit e390bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/json.rb
Expand Up @@ -79,7 +79,7 @@ def self.parse!(source, options = {})
# Raw js object => opal object
def self.from_object(js_object)
options = { :object_class => Hash, :array_class => Array }
`to_opal(js_object, options)`
`to_opal(js_object, #{options.to_n})`
end

def self.generate(obj, options = {})
Expand Down

0 comments on commit e390bc6

Please sign in to comment.