mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
Incoming regular expressions were being converted to the wrong type. Fix
for invalid character error in the step matching.
This commit is contained in:
parent
1e16042ec0
commit
08166f1b9c
2 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,10 @@ module Rhino
|
|||
# Rhino::J::NativeObject # => org.mozilla.javascript.NativeObject
|
||||
module J
|
||||
import "org.mozilla.javascript"
|
||||
|
||||
module Regexp
|
||||
import "org.mozilla.javascript.regexp"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -17,4 +21,4 @@ unless Object.method_defined?(:tap)
|
|||
self
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,6 +8,7 @@ module Rhino
|
|||
when *JS_UNDEF then nil
|
||||
when J::Wrapper then object.unwrap
|
||||
when J::NativeArray then array(object)
|
||||
when J::Regexp::NativeRegExp then object
|
||||
when J::Function then NativeFunction.new(object)
|
||||
when J::Scriptable then NativeObject.new(object)
|
||||
else object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue