Rewrite 'pull-os-versions' script in Javascript to add support for reporting os revis...
[WebKit-https.git] / Websites / perf.webkit.org / server-tests / resources / mock-logger.js
1 'use strict';
2
3 class MockLogger {
4     constructor()
5     {
6         this._logs = [];
7     }
8
9     log(text) { this._logs.push(text); }
10     error(text) { this._logs.push(text); }
11 }
12
13 if (typeof module != 'undefined')
14     module.exports.MockLogger = MockLogger;