Skip to content

Commit

Permalink
Throw a NotImplementedError from the String#[]= method. (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich committed Jun 4, 2018
1 parent a7f2efc commit 1976f66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opal/corelib/unsupported.rb
Expand Up @@ -102,6 +102,10 @@ def upcase!(*)
def prepend(*)
raise NotImplementedError, `ERROR` % 'prepend'
end

def []=(*)
raise NotImplementedError, `ERROR` % '[]='
end
end

module Kernel
Expand Down

0 comments on commit 1976f66

Please sign in to comment.