| 1605 | } |
| 1606 | |
| 1607 | static bool array_valueOf(JSContext *cx, unsigned argc, JS::Value *vp) { |
| 1608 | JS::CallArgs args = JS::CallArgsFromVp(argc, vp); |
| 1609 | |
| 1610 | JS::RootedObject proxy(cx, JS::ToObject(cx, args.thisv())); |
| 1611 | if (!proxy) { |
| 1612 | return false; |
| 1613 | } |
| 1614 | PyObject *self = JS::GetMaybePtrFromReservedSlot<PyObject>(proxy, PyObjectSlot); |
| 1615 | |
| 1616 | // return ref to self |
| 1617 | args.rval().set(jsTypeFactory(cx, self)); |
| 1618 | return true; |
| 1619 | } |
| 1620 | |
| 1621 | |
| 1622 | ////// Sorting |
nothing calls this directly
no test coverage detected