**/
/* }}} */
-var process = {
- env: {},
-};
-
(function() {
this.typeid = function(object) {
this.put(key, value);
},
});
+
+ $cy_set(java.lang.Throwable.prototype, {
+ toCYON: function() {
+ var message = this.getMessage();
+ if (message == null)
+ message = '';
+ else
+ message = message.toCYON();
+
+ let stack = this.getStackTrace();
+ if (stack.length == 0)
+ stack = '';
+ else {
+ stack = stack.join('\n ');
+ stack = ` /*\n ${stack} */`;
+ }
+
+ return `new ${this.constructor.class.getName()}(${message})${stack}`;
+ },
+ });
});
}
return binding;
};
+process.env = {};
+
let environ = *(typedef char ***)(dlsym(RTLD_DEFAULT, "environ"));
for (let i = 0; environ[i] != null; ++i) {
let assign = environ[i];