Commit a74ab0c2 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Kernel.eval to raise NotImplementedError

parent 8bc506e2
......@@ -12,3 +12,10 @@ class Exception
self.new(*args, &block)
end
end
# ISO 15.2.37
class ScriptError < Exception
end
class NotImplementedError < ScriptError
end
......@@ -24,6 +24,11 @@ module Kernel
end
end
# 15.3.1.2.3
def self.eval(s)
raise NotImplementedError.new("eval not implemented")
end
##
# Alias for +send+.
#
......@@ -32,11 +37,10 @@ module Kernel
### *** TODO *** ###
#end
# 15.3.1.3.18
#def instance_eval(string=nil, &block)
# ### *** TODO *** ###
# raise "Not implemented yet"
#end
# 15.3.1.3.12
def eval(s)
Kernel.eval(s)
end
##
# 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