From 0e9d65ea76a6569c1fe896b1b6d4a6b8f8b20ffb Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 14 Aug 2021 03:44:55 +0900 Subject: conflicting/Web/JavaScript/Reference/Lexical_grammar を削除 (#1876) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - conflicting 版の内容はすでに正規版で網羅されているため、 conflicting 版を削除 --- files/ja/_redirects.txt | 10 +-- files/ja/_wikihistory.json | 13 ---- .../reference/lexical_grammar/index.html | 90 ---------------------- 3 files changed, 5 insertions(+), 108 deletions(-) delete mode 100644 files/ja/conflicting/web/javascript/reference/lexical_grammar/index.html diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 55fc6851b7..37a8fa6674 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -962,7 +962,7 @@ /ja/docs/Core_JavaScript_1.5_Reference/Operators/Special_Operators/function_Operator /ja/docs/Web/JavaScript/Reference/Operators/function /ja/docs/Core_JavaScript_1.5_Reference/Operators/Special_Operators/new_Operator /ja/docs/Web/JavaScript/Reference/Operators/new /ja/docs/Core_JavaScript_1.5_Reference/Operators/Special_Operators/this_Operator /ja/docs/Web/JavaScript/Reference/Operators/this -/ja/docs/Core_JavaScript_1.5_Reference/Reserved_Words /ja/docs/conflicting/Web/JavaScript/Reference/Lexical_grammar +/ja/docs/Core_JavaScript_1.5_Reference/Reserved_Words /ja/docs/Web/JavaScript/Reference/Lexical_grammar /ja/docs/Core_JavaScript_1.5_Reference/Statements /ja/docs/Web/JavaScript/Reference/Statements /ja/docs/Core_JavaScript_1.5_Reference/Statements/block /ja/docs/Web/JavaScript/Reference/Statements/block /ja/docs/Core_JavaScript_1.5_Reference/Statements/break /ja/docs/Web/JavaScript/Reference/Statements/break @@ -1159,7 +1159,7 @@ /ja/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:function_Operator /ja/docs/Web/JavaScript/Reference/Operators/function /ja/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:new_Operator /ja/docs/Web/JavaScript/Reference/Operators/new /ja/docs/Core_JavaScript_1.5_Reference:Operators:Special_Operators:this_Operator /ja/docs/Web/JavaScript/Reference/Operators/this -/ja/docs/Core_JavaScript_1.5_Reference:Reserved_Words /ja/docs/conflicting/Web/JavaScript/Reference/Lexical_grammar +/ja/docs/Core_JavaScript_1.5_Reference:Reserved_Words /ja/docs/Web/JavaScript/Reference/Lexical_grammar /ja/docs/Core_JavaScript_1.5_Reference:Statements /ja/docs/Web/JavaScript/Reference/Statements /ja/docs/Core_JavaScript_1.5_Reference:Statements:block /ja/docs/Web/JavaScript/Reference/Statements/block /ja/docs/Core_JavaScript_1.5_Reference:Statements:break /ja/docs/Web/JavaScript/Reference/Statements/break @@ -2665,7 +2665,7 @@ /ja/docs/JavaScript/Reference/Operators2/Special_Operators/new_Operator /ja/docs/Web/JavaScript/Reference/Operators/new /ja/docs/JavaScript/Reference/Operators2/Special_Operators/this_Operator /ja/docs/Web/JavaScript/Reference/Operators/this /ja/docs/JavaScript/Reference/Operators2/Special_Operators/typeof_Operator /ja/docs/Web/JavaScript/Reference/Operators/typeof -/ja/docs/JavaScript/Reference/Reserved_Words /ja/docs/conflicting/Web/JavaScript/Reference/Lexical_grammar +/ja/docs/JavaScript/Reference/Reserved_Words /ja/docs/Web/JavaScript/Reference/Lexical_grammar /ja/docs/JavaScript/Reference/Statements /ja/docs/Web/JavaScript/Reference/Statements /ja/docs/JavaScript/Reference/Statements/block /ja/docs/Web/JavaScript/Reference/Statements/block /ja/docs/JavaScript/Reference/Statements/break /ja/docs/Web/JavaScript/Reference/Statements/break @@ -4437,7 +4437,7 @@ /ja/docs/Web/JavaScript/Reference/Operators/Spread_operator /ja/docs/Web/JavaScript/Reference/Operators/Spread_syntax /ja/docs/Web/JavaScript/Reference/Operators/get /ja/docs/Web/JavaScript/Reference/Functions/get /ja/docs/Web/JavaScript/Reference/Properties_Index /ja/docs/Web/JavaScript/Reference -/ja/docs/Web/JavaScript/Reference/Reserved_Words /ja/docs/conflicting/Web/JavaScript/Reference/Lexical_grammar +/ja/docs/Web/JavaScript/Reference/Reserved_Words /ja/docs/Web/JavaScript/Reference/Lexical_grammar /ja/docs/Web/JavaScript/Reference/Statements/default /ja/docs/Web/JavaScript/Reference/Statements/switch /ja/docs/Web/JavaScript/Reference/Statements/yield /ja/docs/Web/JavaScript/Reference/Operators/yield /ja/docs/Web/JavaScript/Reference/arrow_functions /ja/docs/Web/JavaScript/Reference/Functions/Arrow_functions @@ -5029,7 +5029,7 @@ /ja/docs/dummySlug/Reference/Operators/this /ja/docs/Web/JavaScript/Reference/Operators/this /ja/docs/dummySlug/Reference/Operators/typeof /ja/docs/Web/JavaScript/Reference/Operators/typeof /ja/docs/dummySlug/Reference/Operators/void /ja/docs/Web/JavaScript/Reference/Operators/void -/ja/docs/dummySlug/Reference/Reserved_Words /ja/docs/conflicting/Web/JavaScript/Reference/Lexical_grammar +/ja/docs/dummySlug/Reference/Reserved_Words /ja/docs/Web/JavaScript/Reference/Lexical_grammar /ja/docs/dummySlug/Reference/Statements /ja/docs/Web/JavaScript/Reference/Statements /ja/docs/dummySlug/Reference/Statements/block /ja/docs/Web/JavaScript/Reference/Statements/block /ja/docs/dummySlug/Reference/Statements/break /ja/docs/Web/JavaScript/Reference/Statements/break diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 8ea65b85c6..6ddc4e56bd 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -48551,19 +48551,6 @@ "RobinEgg" ] }, - "conflicting/Web/JavaScript/Reference/Lexical_grammar": { - "modified": "2019-12-24T12:46:59.479Z", - "contributors": [ - "Kisaragi", - "teoli", - "ethertank", - "dextra", - "Potappo", - "Mgjbot", - "Yuichirou", - "electrolysis" - ] - }, "orphaned/Bugzilla-ja": { "modified": "2019-03-24T00:01:53.796Z", "contributors": [ diff --git a/files/ja/conflicting/web/javascript/reference/lexical_grammar/index.html b/files/ja/conflicting/web/javascript/reference/lexical_grammar/index.html deleted file mode 100644 index e84c53c5d0..0000000000 --- a/files/ja/conflicting/web/javascript/reference/lexical_grammar/index.html +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: 予約語 -slug: conflicting/Web/JavaScript/Reference/Lexical_grammar -tags: - - JavaScript -translation_of: Web/JavaScript/Reference/Lexical_grammar#Keywords -translation_of_original: Web/JavaScript/Reference/Reserved_Words -original_slug: Web/JavaScript/Reference/Reserved_Words ---- -

以下は予約語であり、変数、関数、メソッド、あるいはオブジェクトの識別子として用いることはできません。以下は ECMAScript の仕様で既存のキーワードとして予約されているものです。

- -
- -
- -

将来の使用を見越した予約語

- -

以下は ECMAScript の仕様で将来のキーワードとして予約されているものです。現在は特別な機能を持っていませんが、将来機能を持つときのために、識別子として使用できません。このキーワードは、厳格モード、非厳格モードの両方で使用できません。

- -
注記: Firefox 5 (JavaScript 1.8.6) より以前では、これらのキーワードは厳格モードでないときには使用できました。この ECMAScript 違反は Firefox 5 で修正されました。
- -
- -
- -

以下は 厳格モードのコード として実行されたときに 、ECMAScript の仕様で将来のキーワードとして 予約されているものです。ただし、JavaScript 1.7 以上では letyield は伝統的な Mozilla 特有の機能を持っています。

- -
- -
- -

const は ECMAScript の仕様によって将来のキーワードとして予約されていますが、Mozilla やほとんどの他のブラウザが非標準の拡張として実装していることに注意してください。さらに、 exportimport はかつて Mozilla で実装されていましたが、現在では予約語となっています。

- -

加えて、 nulltruefalse リテラルは ECMAScript の仕様で予約されています。

- -

予約語の利用

- -

実際に、予約語は識別子のみに適用されます。es5.github.com/#A.1 の記述にあるように、これらは全て予約語を排除しない識別名です。

- -

a.import
- a["import"]
- a = { import: "test" }.

- -

反対に、以下は識別子であるので違反です。識別子は関数宣言や関数式に使用されます。

- -

function import() {}

-- cgit v1.2.3-54-g00ecf