Marshalling nested rb `Date` to js `Date` is not working.
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, ruby
调研方向
Start in ext/mini_racer_extension/mini_racer_extension.cc at the default conversion case linked in the issue, then compare how DateTime and Time are marshalled. Reproduce with the shown Context#call example using a nested Date; done when the JavaScript object contains a JavaScript Date instead of "Undefined Conversion".
由索引模型根据 Issue 内容生成。
描述
ctx = MiniRacer::Context.new
ctx.eval("var foo = function (obj) { console.log(obj); }")
ctx.call("foo", { my_date: Date.today }) # JS logs => "{ my_date: "Undefined Conversion" }"
DateTime and Time both work fine. Looks like Date falls into the default case here: https://github.com/discourse/mini_racer/blob/b3c9b35859deb189586384f3ae927586a36dda14/ext/mini_racer_extension/mini_racer_extension.cc#L528
- 主要语言
- JavaScript
- 星标
- 628
- 派生
- 100
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rubyjs/mini_racer 的其他 Issue
-
platform: darwin/x86
难度 4/5 3-5 天 新手友好度 35/100
rubyjs/mini_racer#388 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
rubyjs/mini_racer#376 ·
-
难度 4/5 3-5 天 新手友好度 45/100
rubyjs/mini_racer#353 ·
-
难度 3/5 1-2 天 新手友好度 35/100
rubyjs/mini_racer#346 · 6 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
rubyjs/mini_racer#324 · 1 条评论 · 1 个 reaction ·
查看 rubyjs/mini_racer 的全部 Issue
相似的 Issue
-
automated issue report
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
microsoft/playwright#43640 ·
维护者通常 1 天内回复
-
✏️ Editing - Tags
难度 2/5 1-3 小时 新手友好度 66/100
openfoodfacts/openfoodfacts-server#15127 ·
维护者通常 1 天内回复
-
enhancement good first issue hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
Andbal23/dynamic-music-pill#195 ·
维护者通常 1 天内回复