5 lines
117 B
JavaScript

class Obj extends null {}
expect(Obj.toString).toBe(Function.toString);
expect(new Obj().toString).toBeUndefined();