Module: JS

Defined in:
opal/opal/corelib/error.rb

Class Method Summary collapse

Class Method Details

.const_missing(const) ⇒ Object



338
339
340
341
342
343
344
345
346
347
# File 'opal/opal/corelib/error.rb', line 338

def self.const_missing(const)
  if const == :Error
    warn '[Opal] JS::Error class has been renamed to Opal::Raw::Error and will change semantics in Opal 2.1. ' \
         'To ensure forward compatibility, please update your rescue clauses.'

    ::JS::Raw::Error
  else
    super
  end
end