1 // |reftest| skip -- set-methods is not supported
2 // Copyright (C) 2023 Anthony Frehner and Kevin Gibbons. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 description: GetSetRecord throws an exception if the Set-like object's 'keys' property is not callable
8 9. Let keys be ? Get(obj, "keys").
9 10. If IsCallable(keys) is false, throw a TypeError exception.
10 features: [set-methods]
13 const s1 = new Set([1, 2]);
22 s1.symmetricDifference(s2);
24 "GetSetRecord throws an error when keys is undefined"
31 s1.symmetricDifference(s2);
33 "GetSetRecord throws an error when keys is not callable"