5 ms·
Is my understanding of ES6 classes wrong, or is the first migration rule in paragraph 3.1 missing the static keyword? I'd think it should be: // ES5 C.m3
by jorgenhorstink 10y ago
Is my understanding of ES6 classes wrong, or is the first migration rule in paragraph 3.1 missing the static keyword?
I'd think it should be:
// ES5
C.m3 = function(p3) { B4; }
// ES6
class C {
...
static m3(p3) { B4; }
}
- pitaj 10y agoYou're correct. Appears to be a typo.