Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG] Tests fail because wick doesn't adhere to `'use strict';` standards

未关闭
#153 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
javascript
领域
testing-qa

调研方向

首先在 Chrome 中打开 engine/tests/index.html,并复现 issue 中描述的严格模式错误。检查失败的 engine 测试,并确定哪些错误是由违反 'use strict' 规则导致的。完成标准是测试运行时不再出现这些错误,尽管该 issue 除了 engine/tests 之外没有指出具体的文件或测试用例。

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug
I've been trying to get the engine tests up and running, but they continue to reach different types of issues caused by breaking 'use strict'; rules.

To reproduce
Steps to reproduce the behavior:

  1. Open index.html from engine/tests.
  2. See errors

Expected behavior
No errors, since most of the things being tested are not problems currently known about the engine's code.

Screenshots

Image

Editor version
Is this bug reproducible in Wick Editor 1.19.3/1.19.4 or only Candlestick? I don't know. Only has been tested in Candlestick, but because I know Candlestick and Wick share most of the same code, I believe it also happens there too.

Device

  • Hardware: Wintel PC
  • OS: Windows 11
  • Browser: Chrome
  • Version: 149.0.7827.200 (Official Build) (64-bit) (cohort: 149.0.7827.200 Rollout)

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
The solution would be to re-write almost all of the engine to fit into strict JS standards.

Additional context
I don't think this is a problem for the codebase, but strict JS is considered better than default JS nowadays.

主要语言
JavaScript
星标
53
派生
22
平均合并
2 天 10 小时
30 天内合并 PR
12

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Candlestickers/Candlestick 的其他 Issue

查看 Candlestickers/Candlestick 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。