| 84 | it('should not treat class instances as plain objects', function () { |
| 85 | const stmt = this.db.prepare('INSERT INTO entries VALUES (@a, @a, ?)'); |
| 86 | expect(() => stmt.bind(new (class { get a() { return "123"; } })(), null)).to.throw(TypeError); |
| 87 | expect(() => stmt.bind(Object.assign(new Date(), { a: 123 }), null)).to.throw(TypeError); |
| 88 | expect(() => stmt.bind(Object.assign(new Number(123), { a: 123 }), null)).to.throw(TypeError); |
| 89 | expect(() => stmt.bind(Object.assign(() => {}, { a: 123 }), null)).to.throw(TypeError); |
nothing calls this directly
no outgoing calls
no test coverage detected