Files

4 lines
109 B
JavaScript

expect(() => {
using foo = { [Symbol.dispose || Symbol.for("Symbol.dispose")]: 3 };
}).toThrow(TypeError);