Merge pull request #3959 from deepak1556/remote_object_patch

remote: support arguments of type Date
This commit is contained in:
Cheng Zhao 2015-12-31 18:46:22 +08:00
commit af5e76f6ae
4 changed files with 16 additions and 1 deletions

View file

@ -67,6 +67,7 @@ unwrapArgs = (sender, args) ->
when 'remote-object' then objectsRegistry.get meta.id
when 'array' then unwrapArgs sender, meta.value
when 'buffer' then new Buffer(meta.value)
when 'date' then new Date(meta.value)
when 'promise' then Promise.resolve(then: metaToValue(meta.then))
when 'object'
ret = v8Util.createObjectWithName meta.name