Skip to content

RangeError: BigInt negative exponent を新規翻訳#35150

Open
sigma7863 wants to merge 2 commits intomdn:mainfrom
sigma7863:ja-add-translate-bigint-negative-exponent-patch9
Open

RangeError: BigInt negative exponent を新規翻訳#35150
sigma7863 wants to merge 2 commits intomdn:mainfrom
sigma7863:ja-add-translate-bigint-negative-exponent-patch9

Conversation

@sigma7863
Copy link
Copy Markdown
Contributor

Description

RangeError: BigInt negative exponent のページを翻訳しました。

Motivation

Additional details

Related issues and pull requests

Relates to mozilla-japan/translation#868

Add documentation for the 'BigInt negative exponent' RangeError in Japanese.
Copilot AI review requested due to automatic review settings April 12, 2026 16:14
@sigma7863 sigma7863 requested a review from a team as a code owner April 12, 2026 16:14
@sigma7863 sigma7863 requested review from potappo and removed request for a team April 12, 2026 16:14
@github-actions github-actions bot added the l10n-ja Issues related to Japanese content. label Apr 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 12, 2026

Preview URLs (1 page)

(comment last updated: 2026-04-12 16:16:57)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

MDN の JavaScript エラーページ「RangeError: BigInt negative exponent」の日本語版を新規追加する PR です。

Changes:

  • RangeError: BigInt negative exponent ページの日本語翻訳を追加
  • エラーメッセージ、原因、例、関連情報のセクションを作成

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +6
slug: Web/JavaScript/Reference/Errors/BigInt_negative_exponent
l10n:
sourceCommit: fad67be4431d8e6c2a89ac880735233aa76c41d4
---
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l10n.sourceCommit が空になっています。翻訳元の英語ページのコミット SHA を設定して、翻訳追跡ができるようにしてください(例: このリポジトリ内の他のエラーページでは files/ja/web/javascript/reference/errors/not_defined/index.md:4-5 のように設定されています)。

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

@sigma7863 sigma7863 Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slug: Web/JavaScript/Reference/Errors/BigInt_negative_exponent
l10n:
sourceCommit: fad67be4431d8e6c2a89ac880735233aa76c41d4
---
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このエラーページに {{jsSidebar("Errors")}} がありません。日本語の JS エラーページではサイドバーを含めるのが一般的なので、フロントマター直後に追加してください(例: files/ja/web/javascript/reference/errors/invalid_array_length/index.md:6)。

Suggested change
---
---
{{jsSidebar("Errors")}}

Copilot uses AI. Check for mistakes.

## エラーの原因

[べき乗演算子](/ja/docs/Web/JavaScript/Reference/Operators/Exponentiation) の指数は正の値である必要があります。負の指数は底の逆数を取るため、その結果はほとんどの場合 -1 から 1 の間に収まり、`0n` に丸められてしまいます。こうした誤りを検出するため、負の指数は許可されていません。べき乗を行う前に、指数が 0 以上であることを確認してください。
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本文中の数値範囲 -11 がコード形式になっていません。同一パターンの他言語ページではインラインコードとして示しているため、-11 をバッククォートで囲って表記を揃えるのが望ましいです。

Suggested change
[べき乗演算子](/ja/docs/Web/JavaScript/Reference/Operators/Exponentiation) の指数は正の値である必要があります。負の指数は底の逆数を取るため、その結果はほとんどの場合 -1 から 1 の間に収まり、`0n` に丸められてしまいます。こうした誤りを検出するため、負の指数は許可されていません。べき乗を行う前に、指数が 0 以上であることを確認してください。
[べき乗演算子](/ja/docs/Web/JavaScript/Reference/Operators/Exponentiation) の指数は正の値である必要があります。負の指数は底の逆数を取るため、その結果はほとんどの場合 `-1` から `1` の間に収まり、`0n` に丸められてしまいます。こうした誤りを検出するため、負の指数は許可されていません。べき乗を行う前に、指数が 0 以上であることを確認してください。

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

l10n-ja Issues related to Japanese content.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants