|
1 |
| -- title: Function.prototype.toString revision |
2 |
| - description: for functions defined using ECMAScript code, toString must return source text slice from beginning of first token to end of last token matched by the appropriate grammar production |
3 |
| - authors: |
4 |
| - - Michael Ficarra |
5 |
| - champions: |
6 |
| - - Michael Ficarra |
7 |
| - tests: |
8 |
| - - https://github.com/tc39/test262/issues/1163 |
9 |
| - specification: https://tc39.github.io/Function-prototype-toString-revision/ |
10 |
| - example: > |
11 |
| - // String's parse must contains the same |
12 |
| - // function body and parameter list as the original. |
13 |
| -
|
14 |
| - O.gOPD({ get a(){} }, "a").get // "function a(){}" |
15 |
| -
|
16 |
| - O.gOPD({ set a(b){} }, "a").set // "function a(b){}" |
17 |
| - resources: |
18 |
| - - https://github.com/tc39/Function-prototype-toString-revision |
19 |
| - |
20 | 1 | - title: globalThis
|
21 | 2 | description: ECMAScript Proposal, specs, and reference implementation for globalThis
|
22 | 3 | authors:
|
|
112 | 93 |
|
113 | 94 | get #x() { return #xValue; }
|
114 | 95 | set #x(value) {
|
115 |
| - this.#xValue = value; |
| 96 | + this.#xValue = value; |
116 | 97 | window.requestAnimationFrame(this.#render.bind(this));
|
117 | 98 | }
|
118 | 99 |
|
|
135 | 116 | resources:
|
136 | 117 | - https://github.com/tc39/proposal-private-methods
|
137 | 118 |
|
138 |
| -- title: Array.prototype.{flat,flatMap} |
139 |
| - description: Proposal for flatten and flatMap on arrays |
140 |
| - authors: |
141 |
| - - Brian Terlson |
142 |
| - - Michael Ficarra |
143 |
| - champions: |
144 |
| - - Brian Terlson |
145 |
| - - Michael Ficarra |
146 |
| - example: > |
147 |
| - [1, [2, [3]]].flat(Infinity); // [1,2,3] |
148 |
| -
|
149 |
| - [2, 3, 4].flatMap((x) => [x, x * 2]); // [2, 4, 3, 6, 4, 8] |
150 |
| - resources: |
151 |
| - - https://github.com/tc39/proposal-flatMap |
152 |
| - |
153 | 119 | - title: Class Public Instance Fields & Private Instance Fields
|
154 | 120 | description: This proposes a combined vision for public fields and private fields, drawing on the earlier Orthogonal Classes and Class Evaluation Order proposals.
|
155 | 121 | authors:
|
|
199 | 165 | // ^ static class fields
|
200 | 166 |
|
201 | 167 | static white = "white";
|
202 |
| - |
| 168 | +
|
203 | 169 | // ^ static public field.
|
204 | 170 |
|
205 | 171 | static colorName(name) {
|
|
219 | 185 | // ^ Static private method
|
220 | 186 | }
|
221 | 187 |
|
222 |
| -- title: String.prototype.{trimStart,trimEnd} |
223 |
| - description: A proposal to extend ECMA-262 syntax into a superset of JSON. |
224 |
| - authors: |
225 |
| - - Sebastian MarkbΓ₯ge |
226 |
| - champions: |
227 |
| - - Sebastian MarkbΓ₯ge |
228 |
| - tests: |
229 |
| - - https://github.com/tc39/test262/pull/1246 |
230 |
| - example: > |
231 |
| - " Hey JS!".trimStart(); // "Hey JS!" |
232 |
| -
|
233 |
| - "Hey JS! ".trimEnd(); // "Hey JS!" |
234 |
| - resources: |
235 |
| - - https://tc39.github.io/proposal-string-left-right-trim/ |
236 |
| - |
237 | 188 | - title: String.prototype.matchAll
|
238 | 189 | description: If given a string, and either a sticky or a global regular expression which has multiple capturing groups, we often want to iterate through all of the matches.
|
239 | 190 | authors:
|
|
268 | 219 | */
|
269 | 220 | resources:
|
270 | 221 | - https://tc39.github.io/proposal-string-matchall/
|
271 |
| - |
272 |
| -- title: Symbol.prototype.description |
273 |
| - description: Expose the [[Description]] internal slot of a symbol directly instead of just indirectly through Symbol.prototype.toString. |
274 |
| - authors: |
275 |
| - - Michael Ficarra |
276 |
| - champions: |
277 |
| - - Michael Ficarra |
278 |
| - tests: |
279 |
| - - https://github.com/tc39/test262/pull/1590 |
280 |
| - example: > |
281 |
| - const symbol = Symbol('TC39'); |
282 |
| -
|
283 |
| - console.log(symbol.description); // 'TC39' |
284 |
| -
|
285 |
| - console.log(symbol.hasOwnProperty('description')); // false |
286 |
| - resources: |
287 |
| - - https://tc39.github.io/proposal-Symbol-description/ |
288 |
| - |
289 |
| -- title: Object.fromEntries |
290 |
| - description: A proposal for a new static method Object.fromEntries in ECMAScript for transforming a list of key-value pairs into an object. |
291 |
| - authors: |
292 |
| - - Darien Maillet Valentine |
293 |
| - champions: |
294 |
| - - Jordan Harband |
295 |
| - - Kevin Gibbons |
296 |
| - example: > |
297 |
| - const iterableOfEntries = new Map([ |
298 |
| - ['cat', 'dog'], |
299 |
| - ['life', 42] |
300 |
| - ]); |
301 |
| -
|
302 |
| - const obj = Object.fromEntries(iterableOfEntries); |
303 |
| -
|
304 |
| - console.log(obj); // { cat: "dog", life: 42 } |
305 |
| - tests: |
306 |
| - - https://github.com/tc39/test262/pull/1677 |
307 |
| - - https://github.com/tc39/test262/pull/1676 |
308 |
| - resources: |
309 |
| - - https://tc39.github.io/proposal-object-from-entries/ |
310 |
| - |
311 |
| -- title: Well-formed JSON.stringify |
312 |
| - description: A proposal to prevent JSON.stringify from returning ill-formed Unicode strings. |
313 |
| - authors: |
314 |
| - - Richard Gibson |
315 |
| - champions: |
316 |
| - - Mathias Bynens |
317 |
| - tests: |
318 |
| - - https://github.com/tc39/test262/pull/1787 |
319 |
| - specification: https://tc39.github.io/proposal-well-formed-stringify/ |
320 |
| - example: > |
321 |
| - // Non-BMP characters still serialize to surrogate pairs. |
322 |
| - JSON.stringify('π') |
323 |
| - // β '"π"' |
324 |
| - |
325 |
| - JSON.stringify('\uD834\uDF06') |
326 |
| - // β '"π"' |
327 |
| -
|
328 |
| - // Unpaired surrogate code units will serialize to escape sequences. |
329 |
| - JSON.stringify('\uDF06\uD834') |
330 |
| - // β '"\\udf06\\ud834"' |
331 |
| -
|
332 |
| - JSON.stringify('\uDEAD') |
333 |
| - // β '"\\udead"' |
334 |
| -
|
335 |
| - resources: |
336 |
| - - https://tc39.github.io/proposal-well-formed-stringify/ |
337 |
| - |
0 commit comments