* isConstantExpression should return true for immuable bindings * New test * Don't return undefined
6 lines
75 B
JavaScript
6 lines
75 B
JavaScript
expect(() => {
|
|
class A {
|
|
static [{ x: A || 0 }.x];
|
|
}
|
|
}).toThrow();
|