PHP 7.4.33
Preview: create-custom-error.js Size: 477 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/css-tree/lib/utils/create-custom-error.js
export function createCustomError(name, message) {
    // use Object.create(), because some VMs prevent setting line/column otherwise
    // (iOS Safari 10 even throws an exception)
    const error = Object.create(SyntaxError.prototype);
    const errorStack = new Error();

    return Object.assign(error, {
        name,
        message,
        get stack() {
            return (errorStack.stack || '').replace(/^(.+\n){1,3}/, `${name}: ${message}\n`);
        }
    });
};

Directory Contents

Dirs: 0 × Files: 8
Name Size Perms Modified Actions
454 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
477 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
3.32 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
192 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
12.50 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
2.87 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
3.10 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
3.15 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).