| 1064 | } |
| 1065 | |
| 1066 | PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_reverse(JSArrayProxy *self) { |
| 1067 | if (JSArrayProxy_length(self) > 1) { |
| 1068 | JS::RootedValue jReturnedArray(GLOBAL_CX); |
| 1069 | if (!JS_CallFunctionName(GLOBAL_CX, *(self->jsArray), "reverse", JS::HandleValueArray::empty(), &jReturnedArray)) { |
| 1070 | PyErr_Format(PyExc_SystemError, "%s JSAPI call failed", JSArrayProxyType.tp_name); |
| 1071 | return NULL; |
| 1072 | } |
| 1073 | } |
| 1074 | |
| 1075 | Py_RETURN_NONE; |
| 1076 | } |
| 1077 | |
| 1078 | // private |
| 1079 | static bool sort_compare_key_func(JSContext *cx, unsigned argc, JS::Value *vp) { |
nothing calls this directly
no outgoing calls
no test coverage detected