Nicolò Ribaudo 387cda8fbb isConstantExpression should return true for immuable bindings (#8122)
* isConstantExpression should return true for immuable bindings

* New test

* Don't return undefined
2018-06-12 13:40:52 -04:00

6 lines
60 B
JavaScript

const field = Symbol('field');
class A {
[field] = 10;
}