1
0
Fork 0
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:
Charles Lowell 2011-10-05 16:49:51 -05:00
parent 87f8aed5fa
commit 478d81831f

View file

@ -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)