@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
100 lines (99 loc) • 9.59 kB
JavaScript
"use strict";
/**
* @author WMXPY
* @namespace Declare
* @description Error List
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ERROR_LIST = void 0;
const error_code_1 = require("./error-code");
exports.ERROR_LIST = {
[]: "Unknown error", // 1000
[]: "Script cannot be null or undefined", // 1001
[]: "Parse error", // 1100
[]: "Typescript compile error", // 1101
[]: "Maximum code length limit exceed", // 1911
[]: "Maximum expression limit exceed", // 1912
[]: "Maximum for loop limit exceed", // 1913
[]: "Maximum for of loop limit exceed", // 1914
[]: "Maximum for in loop limit exceed", // 1915
[]: "Maximum while loop limited exceed", // 1916
[]: "Maximum do while loop limited exceed", // 1917
[]: "Assert exist element not exist", // 2065
[]: "Assert boolean opposite", // 2066
[]: "Assert type not matched", // 2067
[]: "New statement should call on class only", // 2100
[]: "For of loop only for list", // 2387
[]: "For in loop only for map", // 2388
[]: "Only number available for list", // 2391
[]: "Only string available for map", // 2392
[]: "Only string available for class", // 2393
[]: "Only string available for class instance", // 2394
[]: "Only string available for RegExp", // 2395
[]: "Only string available for bigint", // 2396
[]: "String method not found", // 2397
[]: "Number method not found", // 2398
[]: "Boolean method not found", // 2399
[]: "Function method not found", // 2400
[]: "List Filter argument should be a function", // 2410
[]: "List For Each argument should be a function", // 2411
[]: "List Map argument should be a function", // 2412
[]: "List Reduce argument should be a function", // 2413
[]: "Var declaration not support", // 3003
[]: "Binary not support", // 3004
[]: "Unary not support", // 3005
[]: "Logical not support", // 3006
[]: "Assignment not support", // 3007
[]: "Undefined test not support", // 3008
[]: "Besides declaration not support", // 3009
[]: "Undefined besides declaration not support", // 3010
[]: "Break label is not support", // 3061
[]: "Continue label is not support", // 3062
[]: "Constant variable cannot be edited", // 3081
[]: "Immutable variable cannot be edited", // 3082
[]: "Export not default variable is not support", // 3107
[]: "Export is only available for number, string and boolean", // 3108
[]: "Import only available in root scope", // 3112
[]: "Import object not found", // 3113
[]: "Import namespace is not an object", // 3114
[]: "Import default object have no default export", // 3115
[]: "Define get or set to a object is not supported", // 3151
[]: "Negative unary only available for valid number", // 3310
[]: "Positive update only available for valid number", // 3320
[]: "In binary operation only allow on map or class", // 3330
[]: "In binary operation only allow on identifier", // 3331
[]: "Instance of binary operation left only allow on class instance", // 3332
[]: "Instance of binary operation right only allow on class", // 3333
[]: "Unknown language", // 4050
[]: "Debugger without debug interceptor", // 5301
[]: "Unmounted ast type", // 6001
[]: "Provided module name duplicated", // 6002
[]: "Module is not provided", // 6003
[]: "Cycled import", // 6004
[]: "Unnecessary async expression", // 6005
[]: "Unnecessary await expression", // 6006
[]: "Cannot transfer class to native", // 6100
[]: "Cannot transfer function to native", // 6101
[]: "Cannot transfer native to class", // 6105
[]: "Cannot transfer native to class instance", // 6106
[]: "Cannot read property of undefined", // 6110
[]: "Cannot read property of null", // 6111
[]: "Member expression value cannot be undefined", // 6121
[]: "Declaration init type not matched", // 6201
[]: "Declaration init size not matched", // 6202
[]: "Cannot find original position from line", // 6301
[]: "Cannot find original position from column", // 6302
[]: "Duplicated variable declaration", // 7005
[]: "Variable is not defined", // 7102
[]: "Trace should be class trace", // 7201
[]: "Property should be identifier", // 7301
[]: "Cannot divide by zero", // 7302
[]: "Cannot perform action on non-number", // 7303
[]: "Catch not found", // 7501
[]: "Sandbox is broke", // 7800
[]: "Cannot call member function of undefined", // 8001
[]: "Cannot call tagged template expression of undefined", // 8002
[]: "Cannot spread other than array", // 8101
[]: "Cannot spread other than map", // 8102
[]: "Internal error", // 9001
};