1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
|
<!-- Feature template markdown:
## Header
**Usage Example:**
```js
```
**Documentation:** [link]()
**Discussion Notes / Link to Thread:**
hyphen-hyphen-hyphen (change to actual hyphen)
-->
<style type="text/css">
.doc {
font-size: 16px;
}
.doc h2[id] {
line-height: 20px;
font-size: 16px;
}
.doc h2 > code {
font-size: 16px;
font-weight: bold;
}
.feature-container {
background-color: #e8eef7;
border: 1px solid #c3d9ff;
margin-bottom: 5px;
border-radius: 5px;
}
.feature-container > h2 {
cursor: pointer;
background-color: #c3d9ff;
margin: 0;
padding: 5px;
border-radius: 5px;
}
.feature-container > *:not(h2){
display: none;
padding: 0px 10px;
}
.feature-container.open > *:not(h2){
display: block;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function(event) {
// Move all headers and corresponding contents to an accordion container.
document.querySelectorAll('h2[id]').forEach(function(header) {
var container = document.createElement('div');
container.classList.add('feature-container');
header.parentNode.insertBefore(container, header);
// Add all the following siblings until it hits an <hr>.
var el = header;
while (el && el.tagName !== 'HR') {
var nextEl = el.nextElementSibling;
container.append(el);
el = nextEl;
}
// Add handler to open accordion on click.
header.addEventListener('click', function() {
header.parentNode.classList.toggle('open');
});
});
// Then remove all <hr>s since everything's accordionized.
document.querySelectorAll('hr').forEach(function(el) {
el.parentNode.removeChild(el);
});
});
</script>
[TOC]
# ES6 Support In Chromium
This is a list of [ECMAScript6](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla)
features allowed in Chromium code.
This is **not** a status list of [v8](https://developers.google.com/v8/)'s
support for language features.
> **TBD:** Do we need to differentiate per-project?
> **TBD:** Cross-platform build support? As in: transpilers?
You can propose changing the status of a feature by sending an email to
chromium-dev@chromium.org. Include a short blurb on what the feature is and why
you think it should or should not be allowed, along with links to any relevant
previous discussion. If the list arrives at some consensus, send a codereview
to change this file accordingly, linking to your discussion thread.
> Some descriptions and Usage examples are from [kangax](https://kangax.github.io/compat-table/es6/)
and [http://es6-features.org/](http://es6-features.org/)
# Allowed Features
The following features are allowed in Chromium development.
## `=>` (Arrow Functions)
Arrow functions provide a concise syntax to create a function, and fix a number
of difficulties with `this` (e.g. eliminating the need to write `const self =
this`). Particularly useful for nested functions or callbacks.
Prefer arrow functions over `.bind(this)`.
Arrow functions have an implicit return when used without a body block.
**Usage Example:**
```js
// General usage, eliminating need for .bind(this).
setTimeout(() => {
this.doSomething();
}, 1000); // no need for .bind(this) or const self = this.
// Another example...
window.addEventListener('scroll', (event) => {
this.doSomething(event);
}); // no need for .bind(this) or const self = this.
// Implicit return: returns the value if expression not inside a body block.
() => 1 // returns 1.
() => {1} // returns undefined - body block does not implicitly return.
() => {return 1;} // returns 1.
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-arrow-function-definitions)
**Discussion Notes / Link to Thread:**
**Note**: => does not work in iOS9. Don't use it in code that runs on Chrome for
iOS. There's a presubmit that should warn you about this.
[Discussion thread](https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/iJrC4PVSfoU)
---
## `Promise`
The Promise object is used for asynchronous computations. A Promise represents a
value which may be available now, or in the future, or never.
**Usage Example:**
```js
/** @type {!Promise} */
var fullyLoaded = new Promise(function(resolve) {
function isLoaded() { return document.readyState == 'complete'; }
if (isLoaded()) {
resolve();
} else {
document.onreadystatechange = function() {
if (isLoaded()) resolve();
};
}
});
// ... some time later ...
fullyLoaded.then(startTheApp).then(maybeShowFirstRun);
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects)
[link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
**Discussion Notes:** Feature already extensively used prior to creation of
this document.
---
# Banned Features
The following features are banned for Chromium development.
# Features To Be Discussed
The following features are currently disallowed. See the top of this page on
how to propose moving a feature from this list into the allowed or banned
sections.
## `let` (Block-Scoped Variables)
`let` declares a variable within the scope of a block. This differs from `var`,
which uses function level scope.
**Usage Example:**
```js
// Scope.
function varTest() {
var x = 1;
if (true) {
var x = 2; // Same variable!
console.log(x); // 2
}
console.log(x); // 2
}
function letTest() {
let x = 1;
if (true) {
let x = 2; // Different variable.
console.log(x); // 2
}
console.log(x); // 1
}
// Redeclaration throws.
function f() {
var a = 'hello';
var a = 'hola'; // No error!
let b = 'world';
let b = 'mundo; // TypeError Identifier 'b' has already been declared.
}
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-let-and-const-declarations)
**Discussion Notes / Link to Thread:**
---
## `const` (Block-Scoped Constants)
Constants (also known as "immutable variables") are variables which cannot be
re-assigned new content. Note that if the value is an object, the object itself
is still mutable.
Also note that in Chrome, `const` is block scoped like `let`.
**Usage Example:**
```js
const gravity = 9.81;
gravity = 0; // TypeError: Assignment to constant variable.
gravity === 9.81; // true
const frobber = {isFrobbing: true};
frobber = {isFrobbing: false}; // TypeError: Assignment to constant variable.
frobber.isFrobbing = false; // Works.
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-let-and-const-declarations)
**See also:** [Object.freeze()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze)
**Discussion Notes / Link to Thread:**
---
## Classes
OOP-style and boilerplate-free class syntax, including inheritance, `super()`,
static members, and getters and setters.
**Usage Example:**
```js
class Shape {
constructor(x, y) {
this.x = x;
this.y = y;
}
}
// Note: let Shape = class {...}; is also valid.
class Rectangle extends Shape {
constructor(x, y, width, height) {
super(id, x, y);
this.width = width;
this.height = height;
}
static goldenRectangle() {
var PHI = (1 + Math.sqrt(5)) / 2;
return new Rectangle(0, 0, PHI, 1);
}
}
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-class-definitions)
**Discussion Notes / Link to Thread:**
---
## Block Scope Functions
**Usage Example:**
```js
{
function foo() {
return 1;
}
// foo() === 1
{
function foo() {
return 2;
}
// foo() === 2
}
// foo() === 1
}
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-functiondeclarationinstantiation)
**Discussion Notes / Link to Thread:**
---
## Default Function Parameters
Initialize parameters with default values if no value or `undefined` is passed.
**Usage Example:**
```js
/**
* @param {!Element} element An element to hide.
* @param {boolean=} animate Whether to animatedly hide |element|.
*/
function hide(element, animate=true) {
function setHidden() { element.hidden = true; }
if (animate)
element.animate({...}).then(setHidden);
else
setHidden();
}
hide(document.body); // Animated, animate=true by default.
hide(document.body, false); // Not animated.
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-functiondeclarationinstantiation)
[link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters)
**Discussion Notes / Link to Thread:**
---
## Rest Parameters
Aggregation of function arguments into one Array variable.
**Usage Example:**
```js
function usesRestParams(a, b, ...theRest) {
console.log(a); // 'a'
console.log(b); // 'b'
console.log(theRest); // [1, 2, 3]
}
usesRestParams('a', 'b', 1, 2, 3);
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions)
**Discussion Notes / Link to Thread:**
---
## Spread Operators
Spreading the elements from an iterable collection into individual literals as
function parameters.
**Usage Example:**
```js
// Spreading an Array
var params = ['hello', true, 7];
var other = [1, 2, ...params]; // [1, 2, 'hello', true, 7]
// Spreading a String
var str = 'foo';
var chars = [...str]; // ['f', 'o', 'o']
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-argument-lists-runtime-semantics-argumentlistevaluation)
**Discussion Notes / Link to Thread:**
---
## Object Literal Extensions
Convenient new ways for object property definition.
**Usage Example:**
```js
// Computed property name
var prop = 'foo';
var o = {
[prop]: 'hey',
['b' + 'ar']: 'there',
};
console.log(o); // {foo: 'hey', bar: 'there'}
// Shorthand property
var foo = 1;
var bar = 2;
var o = {foo, bar};
console.log(o); // {foo: 1, bar: 2}
// Method property
var clearSky = {
// Basically the same as clouds: function() { return 0; }.
clouds() { return 0; },
color() { return 'blue'; },
};
console.log(clearSky.color()); // 'blue'
console.log(clearSky.clouds()); // 0
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-object-initialiser)
[link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer)
**Discussion Notes / Link to Thread:**
---
## Template Literals
Expression interpolation for Strings, with the ability to access raw template
pieces.
**Usage Example:**
```js
// Simple example
var greeting = 'hello';
var myName = {first: 'Foo', last: 'Bar'};
var message = `${greeting},
my name is ${myName.first + myName.last}`;
// message == 'hello,\nmy name is FooBar'
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-template-literals)
**Discussion Notes / Link to Thread:**
---
## Binary & Octal Literals
**Usage Example:**
```js
0b111110111 === 503;
0o767 === 503;
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-literals-numeric-literals)
**Discussion Notes / Link to Thread:**
---
## `/u` Unicode Regex Literal
**Usage Example:**
```js
'𠮷'.match(/./u)[0].length === 2;
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-get-regexp.prototype.sticky)
**Discussion Notes / Link to Thread:**
---
## `\u{}` Unicode String
**Usage Example:**
```js
'\u{1d306}' == '\ud834\udf06'; // true
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-literals-string-literals)
**Discussion Notes / Link to Thread:**
---
## `/y` Regex Sticky Matching
Keep the matching position sticky between matches and this way support
efficient parsing of arbitrarily long input strings, even with an arbitrary
number of distinct regular expressions.
**Usage Example:**
```js
var re = new RegExp('yy', 'y');
re.lastIndex = 3;
var result = re.exec('xxxyyxx')[0];
result === 'yy' && re.lastIndex === 5; // true
```
**Documentation:** [link](http://es6-features.org/#RegularExpressionStickyMatching)
**Discussion Notes / Link to Thread:**
---
## Destructuring Assignment
Flexible destructuring of collections or parameters.
**Usage Example:**
```js
// Array
var [a, , b] = [1, 2, 3]; // a = 1, b = 3
// Object
var {width, height} = document.body.getBoundingClientRect();
// width = rect.width, height = rect.height
// Parameters
function f([name, val]) {
console.log(name, val); // 'bar', 42
}
f(['bar', 42, 'extra 1', 'extra 2']); // 'extra 1' and 'extra 2' are ignored.
function g({name: n, val: v}) {
console.log(n, v); // 'foo', 7
}
g({name: 'foo', val: 7});
function h({name, val}) {
console.log(name, val); // 'bar', 42
}
h({name: 'bar', val: 42});
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-destructuring-assignment)
**Discussion Notes / Link to Thread:**
---
## Modules
Support for exporting/importing values from/to modules without global
namespace pollution.
**Usage Example:**
```js
// lib/rect.js
export function getArea() {...};
export {width, height, unimportant};
// app.js
import {getArea, width, height} from 'lib/rect';
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-modules)
**Discussion Notes / Link to Thread:**
---
## Symbol Type
Unique and immutable data type to be used as an identifier for object
properties.
**Usage Example:**
```js
const foo = Symbol();
const bar = Symbol();
typeof foo === 'symbol'; // true
typeof bar === 'symbol'; // true
let obj = {};
obj[foo] = 'foo';
obj[bar] = 'bar';
JSON.stringify(obj); // {}
Object.keys(obj); // []
Object.getOwnPropertyNames(obj); // []
Object.getOwnPropertySymbols(obj); // [foo, bar]
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-symbol-constructor)
**Discussion Notes / Link to Thread:**
---
## `for ...of` Loops
Convenient operator to iterate over all values in an iterable collection. This
differs from `for ...in`, which iterates over all iterable properties.
**Usage Example:**
```js
// Given an iterable collection fibonacci numbers...
for (var n of fibonacci) {
console.log(n); // 1, 1, 2, 3, ...
}
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-for-in-and-for-of-statements)
[link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of)
**Discussion Notes / Link to Thread:**
---
## Object Static Methods
**Usage Example:**
```js
// Object.assign
var o = Object.assign({a:true}, {b:true}, {c:true}); // {a: true, b: true, c: true}
'a' in o && 'b' in o && 'c' in o; // true
// Object.setPrototypeOf
Object.setPrototypeOf({}, Array.prototype) instanceof Array; // true
// Object.is
Object.is(null, null) // true
Object.is(NaN, NaN) // true
Object.is(-0, +0) // false, btw: -0 === +0 is true
// Object.getOwnPropertySymbols
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-properties-of-the-object-constructor)
**Discussion Notes / Link to Thread:**
---
## String Static & Prototype methods
**Usage Example:**
```js
// String.raw
// String.fromCodePoint
// String.prototype.codePointAt
// String.prototype.normalize
// String.prototype.repeat
// String.prototype.startsWith
// String.prototype.endsWith
// String.prototype.includes
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-constructor)
**Discussion Notes / Link to Thread:**
---
## Array Static & Prototype Methods
**Usage Example:**
```js
// Array.from
// Array.of
// Array.prototype.copyWithin
// Array.prototype.find
// Array.prototype.findIndex
// Array.prototype.fill
// Array.prototype.keys
// Array.prototype.values
// Array.prototype.entries
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-properties-of-the-array-constructor)
**Discussion Notes / Link to Thread:**
---
## Number Properties
**Usage Example:**
```js
// Number.isFinite
// Number.isInteger
// Number.isSafeInteger
// Number.isNaN
// Number.EPSILON
// Number.MIN_SAFE_INTEGER
// Number.MAX_SAFE_INTEGER
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-isfinite-number)
**Discussion Notes / Link to Thread:**
---
## Iterators
**Usage Example:**
```js
let fibonacci = {
[Symbol.iterator]() {
let pre = 0, cur = 1;
return {
next () {
[pre, cur] = [cur, pre + cur];
return {done: false, value: cur};
}
};
}
};
```
**Documentation:** [link]()
**Discussion Notes / Link to Thread:**
---
## Generators
Special iterators with specified pausing points.
**Usage Example:**
```js
function* range(start, end, step) {
while (start < end) {
yield start;
start += step;
}
}
for (let i of range(0, 10, 2)) {
console.log(i); // 0, 2, 4, 6, 8
}
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-generator-function-definitions)
**Discussion Notes / Link to Thread:**
---
## `Map`
A simple key/value map in which any value (both objects and primitive values)
may be used as either a key or a value.
**Usage Example:**
```js
var map = new Map();
map.size === 0; // true
map.get('foo'); // undefined
var key = {};
map.set(key, 123);
map.size === 1; // true
map.has(key); // true
map.get(key); // 123
map.delete(key);
map.has(key); // false
map.size === 0; // true
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-map-objects)
[link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map)
**Discussion Notes / Link to Thread:**
---
## `Set`
An object that lets you store unique values of any type, whether primitive
values or object references.
**Usage Example:**
```js
var set = new Set();
set.add(123);
set.size(); // 1
set.has(123); // true
set.add(123);
set.size(); // 1
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-set-objects)
[link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)
**Discussion Notes / Link to Thread:**
---
## `WeakMap`
WeakMap does not prevent garbage collection if nothing else refers to an object
within the collection.
**Usage Example:**
```js
var key = {};
var weakmap = new WeakMap();
weakmap.set(key, 123);
weakmap.has(key) && weakmap.get(key) === 123; // true
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-weakmap-objects)
**Discussion Notes / Link to Thread:**
---
## `WeakSet`
WeakSet does not prevent garbage collection if nothing else refers to an object
within the collection.
**Usage Example:**
```js
var obj1 = {};
var weakset = new WeakSet();
weakset.add(obj1);
weakset.add(obj1);
weakset.has(obj1); // true
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-weakset-objects)
**Discussion Notes / Link to Thread:**
---
## Typed Arrays
A lot of new typed Arrays...
**Usage Example:**
```js
new Int8Array();
new UInt8Array();
new UInt8ClampedArray();
// ... You get the idea. Click on the Documentation link below to see all.
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects)
**Discussion Notes / Link to Thread:**
---
## `Proxy`
Hooking into runtime-level object meta-operations.
**Usage Example:**
```js
var keyTracker = new Proxy({}, {
keysCreated: 0,
get (receiver, key) {
if (key in receiver) {
console.log('key already exists');
} else {
++this.keysCreated;
console.log(this.keysCreated + ' keys created!');
receiver[key] = true;
}
},
});
keyTracker.key1; // '1 keys created!'
keyTracker.key1; // 'key already exists'
keyTracker.key2; // '2 keys created!'
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-proxy-object-internal-methods-and-internal-slots)
**Discussion Notes / Link to Thread:**
---
## `Reflection`
Make calls corresponding to the object meta-operations.
**Usage Example:**
```js
let obj = {a: 1};
Object.defineProperty(obj, 'b', {value: 2});
obj[Symbol('c')] = 3;
Reflect.ownKeys(obj); // ['a', 'b', Symbol(c)]
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-reflection)
**Discussion Notes / Link to Thread:**
---
## Math Methods
A lot of new Math methods.
**Usage Example:**
```js
// See Doc
```
**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-math)
**Discussion Notes / Link to Thread:**
---
|