Created
March 10, 2013 11:09
-
-
Save bachue/5128173 to your computer and use it in GitHub Desktop.
A bug I found in ruby-v8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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