diff options
author | alattalatta <urty5656@gmail.com> | 2021-05-23 23:00:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 23:00:15 +0900 |
commit | 26bb6bea485bb329d74411531d2edba2453afcc8 (patch) | |
tree | a26d12261338269eaba20f12e945884e9e5ab7cc /files/ko/web/javascript/reference/operators/yield | |
parent | bd7d51f8284bbbf840dae6b54d9b5c24af2e3eff (diff) | |
download | translated-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/operators/yield')
-rw-r--r-- | files/ko/web/javascript/reference/operators/yield/index.html | 106 |
1 files changed, 7 insertions, 99 deletions
diff --git a/files/ko/web/javascript/reference/operators/yield/index.html b/files/ko/web/javascript/reference/operators/yield/index.html index ef884816d2..57584c6e9e 100644 --- a/files/ko/web/javascript/reference/operators/yield/index.html +++ b/files/ko/web/javascript/reference/operators/yield/index.html @@ -10,6 +10,7 @@ tags: - 반복자 - 생성기 translation_of: Web/JavaScript/Reference/Operators/yield +browser-compat: javascript.operators.yield --- <div>{{jsSidebar("Operators")}}</div> @@ -71,106 +72,13 @@ console.log(iterator.next()); // { value: 1, done: false } console.log(iterator.next()); // { value: 2, done: false } console.log(iterator.next()); // { value: undefined, done: true }</pre> -<h2 id="Specifications">Specifications</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('ES6', '#', 'Yield')}}</td> - <td>{{Spec2('ES6')}}</td> - <td>Initial definition.</td> - </tr> - <tr> - <td>{{SpecName('ESDraft', '#', 'Yield')}}</td> - <td>{{Spec2('ESDraft')}}</td> - <td> </td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility">Browser compatibility</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 (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>39</td> - <td>{{CompatGeckoDesktop("26.0")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td><code>IteratorResult</code> object instead of throwing</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop("29.0")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>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>{{CompatGeckoMobile("26.0")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td><code>IteratorResult</code> object instead of throwing</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile("29.0")}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<h2 id="Firefox-specific_notes">Firefox-specific notes</h2> +<h2 id="specifications">명세</h2> -<ul> - <li>Starting with Gecko 29 {{geckoRelease(29)}}, the completed generator function no longer throws a {{jsxref("TypeError")}} "generator has already finished". Instead, it returns an <code>IteratorResult</code> object like <code>{ value: undefined, done: true }</code> ({{bug(958951)}}).</li> - <li>Starting with Gecko 33 {{geckoRelease(33)}}, the parsing of the <code>yield</code> expression has been updated to conform with the latest ES6 specification ({{bug(981599)}}): - <ul> - <li>The expression after the <code>yield</code> keyword is optional and omitting it no longer throws a {{jsxref("SyntaxError")}}: <code>function* foo() { yield; }</code></li> - </ul> - </li> -</ul> +<p>{{Specifications}}</p> + +<h2 id="browser_compatibility">브라우저 호환성</h2> + +<p>{{Compat}}</p> <h2 id="See_also">See also</h2> |