* add transform-class-properties to stage 3, set spec mode to default * update readme with examples; use `buildUndefinedNode()`; change behavior to always define both static and nonstatic class properties regardless of spec/loose mode; update tests
10 lines
179 B
JavaScript
10 lines
179 B
JavaScript
class Foo {
|
|
static num = 0;
|
|
static str = "foo";
|
|
}
|
|
|
|
assert.equal(Foo.num, 0);
|
|
assert.equal(Foo.num = 1, 1);
|
|
assert.equal(Foo.str, "foo");
|
|
assert.equal(Foo.str = "bar", "bar");
|