INNER CODE UNIT · JavaScript

FatalError

CloudI/CloudI · src/api/javascript/CloudI.js:205

var FatalError = function FatalError (message) {
    var error = new Error(message);
    error.name = 'FatalError';
    this.message = error.message;
    if (error.stack) {
        this.stack = error.stack;
    }
}
FatalError.prototype = Object.create(Error.prototype, {
    name: { value: 'FatalError' }
});

CloudI.stdout_write = function stdout_write (s) {
    fs.writeSync(1, s);
};
CloudI.stderr_write = function stderr_write (s) {
    fs.writeSync(2, s);
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…