aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/functions
diff options
context:
space:
mode:
authoralattalatta <urty5656@gmail.com>2021-05-23 23:00:15 +0900
committerGitHub <noreply@github.com>2021-05-23 23:00:15 +0900
commit26bb6bea485bb329d74411531d2edba2453afcc8 (patch)
treea26d12261338269eaba20f12e945884e9e5ab7cc /files/ko/web/javascript/reference/functions
parentbd7d51f8284bbbf840dae6b54d9b5c24af2e3eff (diff)
downloadtranslated-content-26bb6bea485bb329d74411531d2edba2453afcc8.tar.gz
translated-content-26bb6bea485bb329d74411531d2edba2453afcc8.tar.bz2
translated-content-26bb6bea485bb329d74411531d2edba2453afcc8.zip
[FIX] Get rid of {{CompatibilityTable}} from JavaScript (#918)
* Add browser-compat to JS pages with legacy compat * Get rid of {{CompatibilityTable}} from JavaScript
Diffstat (limited to 'files/ko/web/javascript/reference/functions')
-rw-r--r--files/ko/web/javascript/reference/functions/arguments/callee/index.html91
-rw-r--r--files/ko/web/javascript/reference/functions/method_definitions/index.html107
-rw-r--r--files/ko/web/javascript/reference/functions/set/index.html102
3 files changed, 18 insertions, 282 deletions
diff --git a/files/ko/web/javascript/reference/functions/arguments/callee/index.html b/files/ko/web/javascript/reference/functions/arguments/callee/index.html
index 13ab0c948d..9f30366e6a 100644
--- a/files/ko/web/javascript/reference/functions/arguments/callee/index.html
+++ b/files/ko/web/javascript/reference/functions/arguments/callee/index.html
@@ -8,6 +8,7 @@ tags:
- Property
- arguments
translation_of: Web/JavaScript/Reference/Functions/arguments/callee
+browser-compat: javascript.functions.arguments.callee
---
<div>{{jsSidebar("Functions")}}</div>
@@ -112,89 +113,13 @@ var john = createPerson("John Smith");
john();</pre>
-<h2 id="스펙">스펙</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">스펙</th>
- <th scope="col">상태</th>
- <th scope="col">설명</th>
- </tr>
- <tr>
- <td>{{SpecName('ES1')}}</td>
- <td>{{Spec2('ES1')}}</td>
- <td>초기 정의. JavaScript 1.2에서 구현됨</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-10.6', 'Arguments Object')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-arguments-exotic-objects', 'Arguments Exotic Objects')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-arguments-exotic-objects', 'Arguments Exotic Objects')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="브라우저_호환성">브라우저 호환성</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="specifications">명세</h2>
+
+<p>{{Specifications}}</p>
+
+<h2 id="browser_compatibility">브라우저 호환성</h2>
+
+<p>{{Compat}}</p>
<h2 id="참조">참조</h2>
diff --git a/files/ko/web/javascript/reference/functions/method_definitions/index.html b/files/ko/web/javascript/reference/functions/method_definitions/index.html
index ff1b67956a..a7147e91ae 100644
--- a/files/ko/web/javascript/reference/functions/method_definitions/index.html
+++ b/files/ko/web/javascript/reference/functions/method_definitions/index.html
@@ -8,6 +8,7 @@ tags:
- Object
- Syntax
translation_of: Web/JavaScript/Reference/Functions/Method_definitions
+browser-compat: javascript.functions.method_definitions
---
<div>{{JsSidebar("Functions")}}</div>
@@ -115,111 +116,13 @@ console.log(bar.foo0()); // 0
console.log(bar.foo1()); // 1
console.log(bar.foo2()); // 2</pre>
-<h2 id="스펙">스펙</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">스펙</th>
- <th scope="col">상태</th>
- <th scope="col">설명</th>
- </tr>
- <tr>
- <td>{{SpecName('ES2015', '#sec-method-definitions', 'Method definitions')}}</td>
- <td>{{Spec2('ES2015')}}</td>
- <td>초기 정의.</td>
- </tr>
- <tr>
- <td>{{SpecName('ES7', '#sec-method-definitions', 'Method definitions')}}</td>
- <td>{{Spec2('ES7')}}</td>
- <td>생성기 메서드 역시 [[Construct]] 트랩이 없어야 하고 <code>new</code>와 함께 사용되는 경우 예외 발생으로 바뀜.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-method-definitions', 'Method definitions')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="브라우저_호환성">브라우저 호환성</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Method definition shorthand</td>
- <td>{{CompatChrome("39")}}</td>
- <td>{{CompatGeckoDesktop("34")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("26")}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Generator methods are not constructable (ES2016)</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("43")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="specifications">명세</h2>
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Method definition shorthand</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("34")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Generator methods are not constructable (ES2016)</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("43")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<p>{{Specifications}}</p>
-<h2 id="SpiderMonkey_전용_주의사항">SpiderMonkey 전용 주의사항</h2>
+<h2 id="browser_compatibility">브라우저 호환성</h2>
-<ul>
- <li>SpiderMonkey 38 {{geckoRelease(38)}} 이전에, "<code>get</code>" 및 "<code>set</code>"은 생성기 메서드에 무효한 이름이었습니다. 이는 {{bug(1073809)}}에서 해결됐습니다.</li>
- <li>SpiderMonkey 41 {{geckoRelease(41)}} 이전에, 중괄호는 메서드 정의에 필요하지 않았습니다. ES2015 스펙을 따르기 위해 이제부터 필요하고 이번과 이후 버전에서 {{jsxref("SyntaxError")}}가 발생합니다 ({{bug(1150855)}}).
- <pre class="brush: js example-bad">var o = {x() 12}; // SyntaxError</pre>
- </li>
- <li>오직 생성기 메서드만이 생성자인 제한은 SpiderMonkey 41 {{geckoRelease(41)}}에서 구현되었습니다. {{bug(1059908)}} 및 {{bug(1166950)}} 참조.</li>
-</ul>
+<p>{{Compat}}</p>
<h2 id="참조">참조</h2>
diff --git a/files/ko/web/javascript/reference/functions/set/index.html b/files/ko/web/javascript/reference/functions/set/index.html
index 248a218c37..148e056c81 100644
--- a/files/ko/web/javascript/reference/functions/set/index.html
+++ b/files/ko/web/javascript/reference/functions/set/index.html
@@ -2,6 +2,7 @@
title: setter
slug: Web/JavaScript/Reference/Functions/set
translation_of: Web/JavaScript/Reference/Functions/set
+browser-compat: javascript.functions.set
---
<div>{{jsSidebar("Functions")}}</div>
@@ -95,106 +96,13 @@ obj.foo = "baz"; // run the setter
console.log(obj.baz); // "baz"
</pre>
-<h2 id="스펙">스펙</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-11.1.5', 'Object Initializer')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td>Initial definition.</td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-method-definitions', 'Method definitions')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Added computed property names.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-method-definitions', 'Method definitions')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="브라우저_호환성CompatibilityTable">브라우저 호환성{{CompatibilityTable}}</h2>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(1)}}</td>
- <td>{{ CompatGeckoDesktop("1.8.1") }}</td>
- <td>{{ CompatIE(9) }}</td>
- <td>9.5</td>
- <td>3</td>
- </tr>
- <tr>
- <td>Computed property names</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoDesktop("34") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<h2 id="specifications">명세</h2>
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{ CompatGeckoMobile("1.8.1") }}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td>Computed property names</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{ CompatGeckoMobile("34.0") }}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<p>{{Specifications}}</p>
-<h2 id="SpiderMonkey-specific_notes">SpiderMonkey-specific notes</h2>
+<h2 id="browser_compatibility">브라우저 호환성</h2>
-<ul>
- <li><a href="/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8.1"> JavaScript 1.8.1</a>부터, object와 array initializers에서 properties를 설정 할 때 setter는 더이상 호출되지 않는다.</li>
- <li>SpiderMonkey 38 부터, {{jsxref("Functions/rest_parameters", "rest parameter", "", 1)}} 를 갖는 setter는  ES6 specification에 따라 {{jsxref("SyntaxError")}}이다.</li>
-</ul>
+<p>{{Compat}}</p>
<h2 id="See_also">See also</h2>