@BsRuntimeMessage(name = "toString", arity = 0) public BsObject toString(BsObject self, BsObject... args) { return BsString.clone( Bs.asString(self.getSlot(MIN).invoke("toString")) + "--" + Bs.asString(self.getSlot(MAX).invoke("toString"))); }
@BsRuntimeMessage(name = "toString", arity = 0) public BsObject toString(BsObject self, BsObject... args) { Number num = Bs.asNumber(self); return BsString.clone(num != null ? num.toString() : "NaN"); }