![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/node_modules/css/node_modules/source-map/build/ |
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ define('test/source-map/assert', ['exports'], function (exports) { let do_throw = function (msg) { throw new Error(msg); }; exports.init = function (throw_fn) { do_throw = throw_fn; }; exports.doesNotThrow = function (fn) { try { fn(); } catch (e) { do_throw(e.message); } }; exports.equal = function (actual, expected, msg) { msg = msg || String(actual) + ' != ' + String(expected); if (actual != expected) { do_throw(msg); } }; exports.ok = function (val, msg) { msg = msg || String(val) + ' is falsey'; if (!Boolean(val)) { do_throw(msg); } }; exports.strictEqual = function (actual, expected, msg) { msg = msg || String(actual) + ' !== ' + String(expected); if (actual !== expected) { do_throw(msg); } }; exports.throws = function (fn) { try { fn(); do_throw('Expected an error to be thrown, but it wasn\'t.'); } catch (e) { } }; });