From 9b965a794d8e500fc0414f234f451a0c6b464984 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 25 Jun 2021 01:17:20 +0900 Subject: Web/JavaScript/Reference/Errors/N* を更新 (#1202) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Web/JavaScript/Reference/Errors/N* を更新 2021/06/14 時点の英語版に同期 * 追加修正 --- files/ja/web/javascript/reference/errors/not_a_codepoint/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/ja/web/javascript/reference/errors/not_a_codepoint') diff --git a/files/ja/web/javascript/reference/errors/not_a_codepoint/index.html b/files/ja/web/javascript/reference/errors/not_a_codepoint/index.html index 8bc1d11a3f..489619f6ea 100644 --- a/files/ja/web/javascript/reference/errors/not_a_codepoint/index.html +++ b/files/ja/web/javascript/reference/errors/not_a_codepoint/index.html @@ -18,11 +18,11 @@ translation_of: Web/JavaScript/Reference/Errors/Not_a_codepoint RangeError: Invalid code point {0} (Chromium) -

エラー種別

+

エラーの種類

{{jsxref("RangeError")}}

-

原因

+

エラーの原因

{{jsxref("String.fromCodePoint()")}} は、 {{jsxref("NaN")}} 値、負の整数 (-1)、 整数以外 (5.4)、 0x10FFFF より大きい数 (1114111) が渡されるとこのエラーを発生します。

@@ -39,7 +39,7 @@ String.fromCodePoint(3.14); // RangeError String.fromCodePoint(3e-2); // RangeError String.fromCodePoint(NaN); // RangeError -

有効なケース

+

有効な場合

String.fromCodePoint(42);       // "*"
 String.fromCodePoint(65, 90);   // "AZ"
-- 
cgit v1.2.3-54-g00ecf