Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions opal/corelib/unsupported.rb
Original file line number Diff line number Diff line change
@@ -207,3 +207,10 @@ def private_methods(*)

alias private_instance_methods private_methods
end

module Kernel
def eval(*)
raise NotImplementedError, "To use Kernel#eval, you must first require 'opal-parser'. "\
"See https://github.com/opal/opal/blob/#{RUBY_ENGINE_VERSION}/docs/opal_parser.md for details."
end
end

0 comments on commit 631d5c4

Please sign in to comment.