stack = stack.slice(0, -1);
for (let i = 0; i != stack.length; ++i)
stack[i] = '\n ' + stack[i];
- stack = stack.join('');
- stack = ` /*${stack} */`;
+ if (stack.length == 0)
+ stack = '';
+ else {
+ stack = stack.join('');
+ stack = ` /*${stack} */`;
+ }
}
return `new ${this.constructor.name}(${this.message.toCYON()})${stack}`;
},
};
Java.on('setup', function() {
- system.print("JVM\n");
$cy_set(java.lang.Boolean.prototype, {
toCYON: function() {
return `new java.lang.Boolean(${this->value})`;