opal/corelib/unsupported.rb in opal-0.11.4 vs opal/corelib/unsupported.rb in opal-1.0.0.beta1
- old
+ new
@@ -23,11 +23,11 @@
#{warn(`string`)};
}
}
class String
- `var ERROR = "String#%s not supported. Mutable String methods are not supported in Opal.";`
+ `var ERROR = "String#%s not supported. Mutable String methods are not supported in Opal."`
def <<(*)
raise NotImplementedError, `ERROR` % '<<'
end
@@ -96,14 +96,34 @@
end
def upcase!(*)
raise NotImplementedError, `ERROR` % 'upcase!'
end
+
+ def prepend(*)
+ raise NotImplementedError, `ERROR` % 'prepend'
+ end
+
+ def []=(*)
+ raise NotImplementedError, `ERROR` % '[]='
+ end
+
+ def clear(*)
+ raise NotImplementedError, `ERROR` % 'clear'
+ end
+
+ def encode!(*)
+ raise NotImplementedError, `ERROR` % 'encode!'
+ end
+
+ def unicode_normalize!(*)
+ raise NotImplementedError, `ERROR` % 'unicode_normalize!'
+ end
end
module Kernel
- `var ERROR = "Object freezing is not supported by Opal";`
+ `var ERROR = "Object freezing is not supported by Opal"`
def freeze
`handle_unsupported_feature(ERROR)`
self
end
@@ -113,11 +133,11 @@
false
end
end
module Kernel
- `var ERROR = "Object tainting is not supported by Opal";`
+ `var ERROR = "Object tainting is not supported by Opal"`
def taint
`handle_unsupported_feature(ERROR)`
self
end
@@ -165,10 +185,12 @@
alias protected_method_defined? private_method_defined?
alias public_instance_methods instance_methods
+ alias public_instance_method instance_method
+
alias public_method_defined? method_defined?
end
module Kernel
def private_methods(*)
@@ -188,7 +210,7 @@
def self.public(*)
# stub
end
def self.private(*)
- #stub
+ # stub
end