Commit a74ab0c2 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Kernel.eval to raise NotImplementedError

parent 8bc506e2
...@@ -12,3 +12,10 @@ class Exception ...@@ -12,3 +12,10 @@ class Exception
self.new(*args, &block) self.new(*args, &block)
end end
end end
# ISO 15.2.37
class ScriptError < Exception
end
class NotImplementedError < ScriptError
end
...@@ -24,6 +24,11 @@ module Kernel ...@@ -24,6 +24,11 @@ module Kernel
end end
end end
# 15.3.1.2.3
def self.eval(s)
raise NotImplementedError.new("eval not implemented")
end
## ##
# Alias for +send+. # Alias for +send+.
# #
...@@ -32,11 +37,10 @@ module Kernel ...@@ -32,11 +37,10 @@ module Kernel
### *** TODO *** ### ### *** TODO *** ###
#end #end
# 15.3.1.3.18 # 15.3.1.3.12
#def instance_eval(string=nil, &block) def eval(s)
# ### *** TODO *** ### Kernel.eval(s)
# raise "Not implemented yet" end
#end
## ##
# Alias for +Kernel.lambda+. # Alias for +Kernel.lambda+.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment