Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
12
Frontend-Learner/node_modules/css-tree/lib/definition-syntax/SyntaxError.js
generated
vendored
Normal file
12
Frontend-Learner/node_modules/css-tree/lib/definition-syntax/SyntaxError.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { createCustomError } from '../utils/create-custom-error.js';
|
||||
|
||||
export function SyntaxError(message, input, offset) {
|
||||
return Object.assign(createCustomError('SyntaxError', message), {
|
||||
input,
|
||||
offset,
|
||||
rawMessage: message,
|
||||
message: message + '\n' +
|
||||
' ' + input + '\n' +
|
||||
'--' + new Array((offset || input.length) + 1).join('-') + '^'
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue