-/* 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 {{{ */
});
$cy_set(java.lang.Object.prototype, {
+ toCYON: function(key) {
+ return "#" + this.toString().toCYON();
+ },
+
// XXX: due to lack of interface prototypes :(
$cyg: function(key) {
return this.get(key);
process.env[name.toString()] = value;
}
+process.cwd = function() {
+ let cwd = new (typedef char[1024]);
+ return getcwd(cwd, cwd.length).toString();
+};
+
process.pid = getpid();
})();