Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Worker {
- /**
- * @constructor
- */
- constructor() { Worker._metacodeValidate(); }
- /**
- * Checks all related configs
- * #validator
- *
- * @private
- */
- static _metacodeValidate() {
- if(Worker._metacodeValidated){
- return;
- }
- assert.ok(configs.engineSettings, `Worker: engine_settings.json wasn't loaded`)
- assert.ok(configs.dbConnection, `Worker: db_connection.json wasn't loaded`)
- Worker._metacodeValidated = true;
- }
- /**
- * @private
- * @static
- */
- static _metacodeValidated = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement