-/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2015 Jay Freeman (saurik)
+/* Cycript - The Truly Universal Scripting Language
+ * Copyright (C) 2009-2016 Jay Freeman (saurik)
*/
/* GNU Affero General Public License, Version 3 {{{ */
return protect_;
}
+ public Object call(String property, Object[] arguments) {
+ try {
+ return handle(protect_, property, arguments);
+ } catch (Throwable throwable) {
+ return new RuntimeException(throwable);
+ }
+ }
+
+ public String toString() {
+ return call("toString", null).toString();
+ }
+
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable
{