RangeError: BigInt negative exponent を新規翻訳#35150
Conversation
Add documentation for the 'BigInt negative exponent' RangeError in Japanese.
|
Preview URLs (1 page) (comment last updated: 2026-04-12 16:16:57) |
There was a problem hiding this comment.
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.
| slug: Web/JavaScript/Reference/Errors/BigInt_negative_exponent | ||
| l10n: | ||
| sourceCommit: fad67be4431d8e6c2a89ac880735233aa76c41d4 | ||
| --- |
There was a problem hiding this comment.
l10n.sourceCommit が空になっています。翻訳元の英語ページのコミット SHA を設定して、翻訳追跡ができるようにしてください(例: このリポジトリ内の他のエラーページでは files/ja/web/javascript/reference/errors/not_defined/index.md:4-5 のように設定されています)。
There was a problem hiding this comment.
| slug: Web/JavaScript/Reference/Errors/BigInt_negative_exponent | ||
| l10n: | ||
| sourceCommit: fad67be4431d8e6c2a89ac880735233aa76c41d4 | ||
| --- |
There was a problem hiding this comment.
このエラーページに {{jsSidebar("Errors")}} がありません。日本語の JS エラーページではサイドバーを含めるのが一般的なので、フロントマター直後に追加してください(例: files/ja/web/javascript/reference/errors/invalid_array_length/index.md:6)。
| --- | |
| --- | |
| {{jsSidebar("Errors")}} |
|
|
||
| ## エラーの原因 | ||
|
|
||
| [べき乗演算子](/ja/docs/Web/JavaScript/Reference/Operators/Exponentiation) の指数は正の値である必要があります。負の指数は底の逆数を取るため、その結果はほとんどの場合 -1 から 1 の間に収まり、`0n` に丸められてしまいます。こうした誤りを検出するため、負の指数は許可されていません。べき乗を行う前に、指数が 0 以上であることを確認してください。 |
There was a problem hiding this comment.
本文中の数値範囲 -1 と 1 がコード形式になっていません。同一パターンの他言語ページではインラインコードとして示しているため、-1 と 1 をバッククォートで囲って表記を揃えるのが望ましいです。
| [べき乗演算子](/ja/docs/Web/JavaScript/Reference/Operators/Exponentiation) の指数は正の値である必要があります。負の指数は底の逆数を取るため、その結果はほとんどの場合 -1 から 1 の間に収まり、`0n` に丸められてしまいます。こうした誤りを検出するため、負の指数は許可されていません。べき乗を行う前に、指数が 0 以上であることを確認してください。 | |
| [べき乗演算子](/ja/docs/Web/JavaScript/Reference/Operators/Exponentiation) の指数は正の値である必要があります。負の指数は底の逆数を取るため、その結果はほとんどの場合 `-1` から `1` の間に収まり、`0n` に丸められてしまいます。こうした誤りを検出するため、負の指数は許可されていません。べき乗を行う前に、指数が 0 以上であることを確認してください。 |
Description
RangeError: BigInt negative exponent のページを翻訳しました。
Motivation
Additional details
Related issues and pull requests
Relates to mozilla-japan/translation#868