});
};
+$cy_set(Boolean.prototype, {
+ toCYON: function() {
+ return `new Boolean(${this.toString()})`;
+ },
+});
+
$cy_set(Date.prototype, {
toCYON: function() {
return `new ${this.constructor.name}(${this.toUTCString().toCYON()})`;
},
});
+$cy_set(Number.prototype, {
+ toCYON: function() {
+ return `new Number(${this.toString()})`;
+ },
+});
+
+$cy_set(RegExp.prototype, {
+ toCYON: function() {
+ return this.toString();
+ },
+});
+
let IsFile = function(path) {
// XXX: this doesn't work on symlinks, but I don't want to fix stat :/
return access(path, F_OK) == 0 && access(path + '/', F_OK) == -1;