Open johnnyt opened 9 years ago
I have a fix for this in my checkout. The SecurityError was coming from customize_top_self in bootstrap/RubyContext.rb which is executed at the start of each ruby session . The class<<self construct is not a read-only operation on the IR graph which was generated by the parser. For the case of customize_top_self we can commit a copy of the method dictionary from the top level singleton class after boostrap and manufacture a top level singleton class with Smalltalk code during normal session startup. However general execution of persistently loaded code containing class<< constructs would need a fair amount of work to the IR classes to make that construct operate in a read-only manner .
def self.customize_top_self(top_self) class << top_self def to_s "main" end def inspect "main" end def include(_args) Object.include(_args) end def private(_args) Object.private(_args) end def public(_args) Object.public(_args) end end end
We added code modification privilege to GcUser.
We are still getting this error: