Forum: Ruby-core RubyVM::InstructionSequence.compile can not take the 5th argument

Posted by fahmisetiawan (Fahmi Setiawan) (Guest)
on 2012-10-01 13:38
(Received via mailing list)
Issue #4001 has been updated by fahmisetiawan (Fahmi Setiawan).


http://alkian.blogspot.com/2012/09/cara-menyembuhk...
http://alkian.blogspot.com/2012/09/keretamini-kere...
http://alkian.blogspot.com/2012/09/harga-spesifika...
http://alkian.blogspot.com/2012/09/download-one-pi...
http://alkian.blogspot.com/2012/09/harga-dan-spesi...
http://alkian.blogspot.com/2012/09/harga-dan-spesi...
http://alkian.blogspot.com/2012/09/download-harves...
http://alkian.blogspot.com/2012/09/download-gratis...
http://alkian.blogspot.com/2012/09/cara-download-d...
http://alkian.blogspot.com/2012/09/cara-mengganti-...
http://alkian.blogspot.com/2012/09/free-download-w...
http://alkian.blogspot.com/2012/09/free-download-k...
http://alkian.blogspot.com/2012/09/free-download-c...
http://alkian.blogspot.com/2012/09/cara-membuat-re...
http://alkian.blogspot.com/2012/09/daftar-harga-le...
http://alkian.blogspot.com/2012/09/download-theme-...
http://alkian.blogspot.com/2012/09/download-alqura...
http://alkian.blogspot.com/2012/09/kumpulan-kata-k...
http://alkian.blogspot.com/2012/09/kumpulan-websit...
http://alkian.blogspot.com/2012/09/template-seo-fr...
http://alkian.blogspot.com/2012/09/harga-hp-nokia-...
http://alkian.blogspot.com/2012/09/foto-ariel-noah...
http://alkian.blogspot.com/2012/09/download-serial...
http://alkian.blogspot.com/2012/09/biodata-foto-iq...
http://alkian.blogspot.com/2012/09/harga-dan-spesi...
http://alkian.blogspot.com/2012/09/biodata-akb48-l...
http://alkian.blogspot.com/2012/08/arti-dan-makna-...
----------------------------------------
Bug #4001: RubyVM::InstructionSequence.compile can not take the 5th 
argument
https://bugs.ruby-lang.org/issues/4001#change-29908

Author: yhara (Yutaka HARA)
Status: Closed
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: YARV
Target version:
ruby -v: 1.9.2p0


=begin
 InstructionSequence.compile takes src, file, path, line, opt
 as the arguments, but raises ArgumentError when opt is given.

 Example:

   $ ruby -e 'p RubyVM::InstructionSequence.compile("", "", "", 1, {})'
   -e:1:in `compile': wrong number of arguments (5 for 1..4) 
(ArgumentError)

 Patch:

 Index: iseq.c
 ===================================================================
 --- iseq.c      (revision 29626)
 +++ iseq.c      (working copy)
 @@ -581,7 +581,7 @@

      rb_secure(1);

 -    rb_scan_args(argc, argv, "13", &src, &file, &path, &line, &opt);
 +    rb_scan_args(argc, argv, "14", &src, &file, &path, &line, &opt);
      if (NIL_P(file)) file = rb_str_new2("<compiled>");
      if (NIL_P(line)) line = INT2FIX(1);
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.