Ticket #37740: ruby-1.8.patch

File ruby-1.8.patch, 500 bytes (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

revised ruby 1.8 patch

  • Source/JavaScriptCore/offlineasm/offsets.rb

    old new  
    109109    File.open(file, "r") {
    110110        | inp |
    111111        loop {
    112             byte = inp.getbyte
     112            if RUBY_VERSION >= '1.8.7'
     113              byte = inp.getbyte
     114            else
     115              byte = inp.getc
     116            end
    113117            break unless byte
    114118            fileBytes << byte
    115119        }