Skip to content

Instantly share code, notes, and snippets.

@bachue
Created March 10, 2013 11:09
Show Gist options
  • Save bachue/5128173 to your computer and use it in GitHub Desktop.
Save bachue/5128173 to your computer and use it in GitHub Desktop.
A bug I found in ruby-v8
require 'v8'
v8 = V8::Context.new
r = v8.eval 'a = {"b": 310399688698392577}'
r[b].to_i # => 310399688698392576 (expected: 310399688698392577)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment