Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (282 Bytes)
Bug #15406
» test.rb
wanabe (_ wanabe)
, 12/12/2018 08:43 PM
GC
.
stress
=
true
if
ARGV
[
0
]
nums
=
ARGV
.
map
(
&
:to_i
)
else
nums
=
[
0
,
13
,
0
]
end
scr
=
nums
.
map
do
|
n
|
"class A; "
+
"def a; end; "
*
n
+
"end; "
end
.
join
binary
=
RubyVM
::
InstructionSequence
.
compile
(
scr
).
to_binary
iseq
=
RubyVM
::
InstructionSequence
.
load_from_binary
(
binary
)
« Previous
1
2
Next »
(1-1/2)
Loading...