mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
properly map Time objects.
This commit is contained in:
parent
87f8aed5fa
commit
478d81831f
1 changed files with 8 additions and 7 deletions
|
@ -8,6 +8,7 @@ module Rhino
|
||||||
when *JS_UNDEF then nil
|
when *JS_UNDEF then nil
|
||||||
when J::Wrapper then object.unwrap
|
when J::Wrapper then object.unwrap
|
||||||
when J::NativeArray then array(object)
|
when J::NativeArray then array(object)
|
||||||
|
when J::NativeDate then Time.at(object.getJSTimeValue() / 1000)
|
||||||
when J::Regexp::NativeRegExp then object
|
when J::Regexp::NativeRegExp then object
|
||||||
when J::Function then NativeFunction.new(object)
|
when J::Function then NativeFunction.new(object)
|
||||||
when J::Scriptable then NativeObject.new(object)
|
when J::Scriptable then NativeObject.new(object)
|
||||||
|
|
Loading…
Reference in a new issue