]> git.saurik.com Git - cycript.git/blobdiff - Complete.cpp
Error instances that weren't thrown have no stack.
[cycript.git] / Complete.cpp
index d822d995adefe9f282ac92c064d735862c7c3c76..276ccaf5e2111827ef28693137df42074f74cfc5 100644 (file)
@@ -106,6 +106,10 @@ _visible char **CYComplete(const char *word, const std::string &line, CYUTF8Stri
     "               if (name.substring(0, entire) == prefix)\n"
     "                   names.push(name.substr(before));\n"
     "       } else do {\n"
+    "           if (object.hasOwnProperty(\"cy$complete\")) {\n"
+    "               names = names.concat(object.cy$complete(prefix));\n"
+    "               continue;\n"
+    "           }\n"
     "           try {\n"
     "               var local = Object.getOwnPropertyNames(object);\n"
     "           } catch (e) {\n"