Comment

Comment by jorgenhorstink

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; }
  }

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton