feat: init
This commit is contained in:
11
node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js
generated
vendored
Normal file
11
node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Unique token which is not exposed publicly.
|
||||
// Used to prevent user calling class constructors.
|
||||
export const TOKEN = {};
|
||||
|
||||
/**
|
||||
* Throw error when restricted class constructor is called by user code.
|
||||
* @throws {Error}
|
||||
*/
|
||||
export function constructorError() {
|
||||
throw new Error("Constructor is for internal use only");
|
||||
}
|
||||
Reference in New Issue
Block a user