UNPKG

es2049scripts

Version:

ECMAScript 2049: ES.Next on every line by triple-transpile by Harald Rudell: ERASE THE PAST

28 lines (22 loc) 819 B
"use strict"; var _ScriptsTester = _interopRequireDefault(require("./ScriptsTester")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* © 2017-present Harald Rudell <harald.rudell@gmail.com> (http://www.haraldrudell.com) This source code is licensed under the ISC-style license found in the LICENSE file in the root directory of this source tree. */ // node --experimental-modules src (v8.5+ v9.3+) const m = 'scripts-test'; let debug = true; run().catch(onReject); async function run() { return new _ScriptsTester.default({ debug }).test(); } function onReject(e) { debug && console.error(`${m} error handler:`); if (!(e instanceof Error)) e = new Error(`Error value: ${typeof e} ${e}`); console.error(!debug ? e.message : e); process.exit(1); }