Files

5 lines
176 B
JavaScript

// JSON is wrapped because it starts with an uppercase letter, but it
// should not be possible to extend it anyway.
expect(() => class BetterJSON extends JSON {}).toThrow();