// |reftest| skip -- set-methods is not supported // Copyright (C) 2023 Anthony Frehner and Kevin Gibbons. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-set.prototype.difference description: Set.prototype.difference does not implement [[Construct]], is not new-able includes: [isConstructor.js] features: [Reflect.construct, set-methods] ---*/ assert.sameValue( isConstructor(Set.prototype.difference), false, "isConstructor(Set.prototype.difference) must return false" ); assert.throws( TypeError, () => { new Set.prototype.difference(); }); reportCompare(0, 0);