animate/webGl/my-threejs-test/node_modules/css-tree/cjs/definition-syntax/SyntaxError.cjs

17 lines
471 B
JavaScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
'use strict';
const createCustomError = require('../utils/create-custom-error.cjs');
function SyntaxError(message, input, offset) {
return Object.assign(createCustomError.createCustomError('SyntaxError', message), {
input,
offset,
rawMessage: message,
message: message + '\n' +
' ' + input + '\n' +
'--' + new Array((offset || input.length) + 1).join('-') + '^'
});
}
exports.SyntaxError = SyntaxError;