TypeError, because class methods are strict mode by default even without the pragma, and this never gets auto-boxed to globalThis like it would in a plain function.
Detach a regular old function from an object and call it bare, and non-strict mode quietly hands you the global object as this, so this. n += 1 just creates a garbage global property and moves on. Classes don’t get that safety net at all, strict or not, so the failure mode here isn’t really about the “use strict” string at the top.