Skip to content

Fix missing new keyword in error constructors and redundant true && in logic#10

Open
YonganZhang wants to merge 1 commit intoChinaSiro:mainfrom
YonganZhang:fix/missing-new-keyword-and-logic-bug
Open

Fix missing new keyword in error constructors and redundant true && in logic#10
YonganZhang wants to merge 1 commit intoChinaSiro:mainfrom
YonganZhang:fix/missing-new-keyword-and-logic-bug

Conversation

@YonganZhang
Copy link
Copy Markdown

Summary

  • restored-src/src/commands.ts:707: throw ReferenceError()throw new ReferenceError() — missing new keyword
  • restored-src/src/utils/claudeInChrome/setup.ts:196: throw Error()throw new Error() — same issue
  • restored-src/src/commands/chrome/chrome.tsx:189: Remove redundant true && in isWSL || true && !isClaudeAISubscriber — due to operator precedence, the expression always evaluates to true for non-subscribers

🤖 Generated with Claude Code

…`true &&` in logic check

- src/commands.ts: `throw ReferenceError()` → `throw new ReferenceError()`
- src/utils/claudeInChrome/setup.ts: `throw Error()` → `throw new Error()`
- src/commands/chrome/chrome.tsx: Remove redundant `true &&` in `isDisabled` check

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant