(Object thisObj, String name)
| 235 | } |
| 236 | |
| 237 | private static NativeSet realThis(Object thisObj, String name) { |
| 238 | NativeSet ns = LambdaConstructor.convertThisObject(thisObj, NativeSet.class); |
| 239 | if (!ns.instanceOfSet) { |
| 240 | // If we get here, then this object doesn't have the "Set internal data slot." |
| 241 | throw ScriptRuntime.typeErrorById("msg.incompat.call", name); |
| 242 | } |
| 243 | return ns; |
| 244 | } |
| 245 | |
| 246 | // ES2025 Set Methods Implementation |
| 247 |
no test coverage detected