popcodeorg / popcodeorg/popcode
Use sourcemaps for runtime error line numbers
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 191
- 派生
- 143
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 5
描述
Right now our logic for finding out what line of the student’s JavaScript generated a runtime error is fragile, woolly, and different for different browsers.
Maybe we can hook into the source maps mechanism and provide a sourceUrl that is a data URI, which would then cause the browser to give us the right information?
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪确定运行时错误行号的当前逻辑,然后调查浏览器 source map 和 data-URI sourceUrl 对生成的学生 JavaScript 的行为。完成的标准是在所有受支持的浏览器中始终报告正确的源代码行;该 issue 未指定文件或要运行的测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- web-dev
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100