From 23154d27fed9944d0b39805d4b1f1d24679978b1 Mon Sep 17 00:00:00 2001 From: FINEARCHS <133759614+FineArchs@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:35:59 +0900 Subject: [PATCH 1/4] Update std-math.md --- docs/ja/references/std-math.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/ja/references/std-math.md b/docs/ja/references/std-math.md index 6aaaab9..1a38a5e 100644 --- a/docs/ja/references/std-math.md +++ b/docs/ja/references/std-math.md @@ -133,6 +133,8 @@ _options_ に渡したオブジェクトを通じて、内部の挙動を指定 | `rc4_legacy` | RC4 | 浮動小数点数演算による範囲制限(0.19.0以前のアルゴリズム) | | 無指定 または 'chacha20' | ChaCha20 | Rejection Sampling | +なお、**非[セキュアコンテクスト](https://developer.mozilla.org/ja/docs/Web/Security/Secure_Contexts)などの[`crypto`](https://developer.mozilla.org/ja/docs/Web/API/Window/crypto)[`.subtle`](https://developer.mozilla.org/ja/docs/Web/API/Crypto/subtle)が利用できないJavascript環境下では`rc4_legacy`のみが利用可能**となり、デフォルトも`rc4_legacy`に変更されます。 + ```aiscript playground let rng = Math:gen_rng('AICHAN') From 931f88d6288fcf4257287ba01e6adccbc140ac45 Mon Sep 17 00:00:00 2001 From: FINEARCHS <133759614+FineArchs@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:39:11 +0900 Subject: [PATCH 2/4] Update std-math.md(en) --- docs/en/references/std-math.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/en/references/std-math.md b/docs/en/references/std-math.md index dda4344..93579f8 100644 --- a/docs/en/references/std-math.md +++ b/docs/en/references/std-math.md @@ -133,6 +133,9 @@ The change in behavior by specifying `options.algorithm` is shown below: | `rc4_legacy` | RC4 | Range limitation by floating-point arithmetic (pre-0.19.0 algorithm) | | Not specified, or `chacha20` | ChaCha20 | Rejection Sampling | +**Note:** In JavaScript environments where [`crypto`](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto)[`.subtle`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle) is not available—such as in non-[secure contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts)—only `rc4_legacy` can be used, and the default will also be changed to `rc4_legacy`. + + ```aiscript playground let rng = Math:gen_rng('AICHAN') From 33e2f2940ddc5369633b9218368e86a9bdd20068 Mon Sep 17 00:00:00 2001 From: FINEARCHS <133759614+FineArchs@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:45:28 +0900 Subject: [PATCH 3/4] Update keywords.md --- docs/ja/references/keywords.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/ja/references/keywords.md b/docs/ja/references/keywords.md index abb926f..4b4e3cc 100644 --- a/docs/ja/references/keywords.md +++ b/docs/ja/references/keywords.md @@ -12,6 +12,14 @@ let match = null // エラー print('hoge') } // エラー ``` +```aiscript +let obj = { + default: true +} // 1.1.0より、オブジェクトリテラルのキーとしての利用は可能 + +obj.default = false // エラー(プロパティアクセス記法は未対応) +obj["default"] = false // こちらは可 +``` ## 使用中の語と使用予定の語 `match`や`for`は文法中で既にキーワードとして使用されています。 From 54575a4b4e85f4d2c08ed86f505012c1bbceb471 Mon Sep 17 00:00:00 2001 From: FINEARCHS <133759614+FineArchs@users.noreply.github.com> Date: Mon, 18 Aug 2025 11:51:58 +0900 Subject: [PATCH 4/4] Update keywords.md(en) --- docs/en/references/keywords.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/en/references/keywords.md b/docs/en/references/keywords.md index a320863..bdcea51 100644 --- a/docs/en/references/keywords.md +++ b/docs/en/references/keywords.md @@ -13,6 +13,14 @@ let match = null // Error print('hoge') } // Error ``` +```aiscript +let obj = { + default: true +} // Since 1.1.0: it works when used as a key in object literals + +obj.default = false // Error (property access notation not supported yet) +obj["default"] = false // This works +``` ## Words in Use and Words Planned for Use The keywords `match` and `for` are already used as keywords in the grammar.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: