@mirascript/wasm 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/wasm.d.ts CHANGED
@@ -59,35 +59,37 @@ export enum DiagnosticCode {
59
59
  ExpressionExpected = 1046,
60
60
  PatternExpected = 1047,
61
61
  ExclamationInLiteralPattern = 1048,
62
- UnexpectedOperatorInLiteralPattern = 1049,
63
- MutInRebindPattern = 1050,
64
- ConstantInBindPattern = 1051,
65
- MutInDiscardPattern = 1052,
66
- DiscardInSpreadPattern = 1053,
67
- SpreadDiscardInRecordPattern = 1054,
68
- MispositionedSpreadInRecordPattern = 1055,
69
- InterpolatedNameRecordPattern = 1056,
70
- BadOmitKeyRecordPattern = 1057,
71
- AmbiguousRangePattern = 1058,
72
- DuplicateSpreadPattern = 1059,
73
- MispositionedRestParameter = 1060,
74
- UndefinedVariableAssignment = 1061,
75
- ImmutableVariableAssignment = 1062,
76
- UninitializedVariable = 1063,
77
- DuplicateVariableDeclaration = 1064,
78
- UnexpectedBreak = 1065,
79
- UnexpectedContinue = 1066,
80
- MisuseOfGlobalKeyword = 1067,
81
- BadOmitKeyRecordExpression = 1068,
82
- UnassignableExpression = 1069,
62
+ MutInRebindPattern = 1049,
63
+ ConstantInBindPattern = 1050,
64
+ MutInDiscardPattern = 1051,
65
+ DiscardInSpreadPattern = 1052,
66
+ SpreadDiscardInRecordPattern = 1053,
67
+ MispositionedSpreadInRecordPattern = 1054,
68
+ InterpolatedNameRecordPattern = 1055,
69
+ BadOmitKeyRecordPattern = 1056,
70
+ AmbiguousRangePattern = 1057,
71
+ DuplicateSpreadPattern = 1058,
72
+ MispositionedRestParameter = 1059,
73
+ UndefinedVariableAssignment = 1060,
74
+ ImmutableVariableAssignment = 1061,
75
+ UninitializedVariable = 1062,
76
+ DuplicateVariableDeclaration = 1063,
77
+ UnexpectedBreak = 1064,
78
+ UnexpectedContinue = 1065,
79
+ MisuseOfGlobalKeyword = 1066,
80
+ BadOmitKeyRecordExpression = 1067,
81
+ UnassignableExpression = 1068,
82
+ NonNumberInRange = 1069,
83
+ NonNumberOrStringInComparison = 1070,
84
+ NonNumberInArithmetic = 1071,
85
+ NonBooleanInLogical = 1072,
83
86
  ErrorEnd = 1999,
84
87
  WarningStart = 2000,
85
88
  UnnecessaryParentheses = 2001,
86
89
  MisleadingNilVariable = 2002,
87
90
  UnnecessaryIrrefutablePattern = 2003,
88
- MisleadingOrInIrrefutablePattern = 2004,
89
- MatchExpressionHasNoCases = 2005,
90
- GlobalVariableNotDeclared = 2006,
91
+ MatchExpressionHasNoCases = 2004,
92
+ GlobalVariableNotDeclared = 2005,
91
93
  WarningEnd = 2999,
92
94
  InfoStart = 3000,
93
95
  InfoEnd = 3999,
package/lib/wasm.js CHANGED
@@ -299,7 +299,7 @@ export function reserved_keywords() {
299
299
  }
300
300
 
301
301
  /**
302
- * @enum {1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 | 2999 | 3000 | 3999 | 4000 | 4001 | 4002 | 4999 | 5000 | 5001 | 5002 | 5003 | 5004 | 5005 | 5006 | 5999 | 10000 | 10001 | 10002 | 10003 | 10004 | 10005 | 10006 | 10007 | 10008 | 10009 | 10010 | 10011 | 10012 | 10013 | 10014 | 10015 | 10016 | 10017 | 10018 | 10019 | 10020 | 10021 | 10022 | 10023 | 10024 | 10025 | 10026 | 10027 | 10028 | 10029 | 10030 | 10031 | 10032 | 10033 | 10034 | 10035 | 10036 | 10037 | 10038 | 10039 | 10040 | 10041 | 10042 | 10999 | 11000 | 11001 | 11002 | 11003 | 11004 | 11005 | 11006 | 11007 | 11008 | 11009 | 11010 | 11011 | 11012 | 11013 | 11014 | 11015 | 11016 | 11017 | 11018 | 11019 | 11020 | 11021 | 11022 | 11023 | 11999 | 12000}
302
+ * @enum {1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2999 | 3000 | 3999 | 4000 | 4001 | 4002 | 4999 | 5000 | 5001 | 5002 | 5003 | 5004 | 5005 | 5006 | 5999 | 10000 | 10001 | 10002 | 10003 | 10004 | 10005 | 10006 | 10007 | 10008 | 10009 | 10010 | 10011 | 10012 | 10013 | 10014 | 10015 | 10016 | 10017 | 10018 | 10019 | 10020 | 10021 | 10022 | 10023 | 10024 | 10025 | 10026 | 10027 | 10028 | 10029 | 10030 | 10031 | 10032 | 10033 | 10034 | 10035 | 10036 | 10037 | 10038 | 10039 | 10040 | 10041 | 10042 | 10999 | 11000 | 11001 | 11002 | 11003 | 11004 | 11005 | 11006 | 11007 | 11008 | 11009 | 11010 | 11011 | 11012 | 11013 | 11014 | 11015 | 11016 | 11017 | 11018 | 11019 | 11020 | 11021 | 11022 | 11023 | 11999 | 12000}
303
303
  */
304
304
  export const DiagnosticCode = Object.freeze({
305
305
  ErrorStart: 1000, "1000": "ErrorStart",
@@ -351,35 +351,37 @@ export const DiagnosticCode = Object.freeze({
351
351
  ExpressionExpected: 1046, "1046": "ExpressionExpected",
352
352
  PatternExpected: 1047, "1047": "PatternExpected",
353
353
  ExclamationInLiteralPattern: 1048, "1048": "ExclamationInLiteralPattern",
354
- UnexpectedOperatorInLiteralPattern: 1049, "1049": "UnexpectedOperatorInLiteralPattern",
355
- MutInRebindPattern: 1050, "1050": "MutInRebindPattern",
356
- ConstantInBindPattern: 1051, "1051": "ConstantInBindPattern",
357
- MutInDiscardPattern: 1052, "1052": "MutInDiscardPattern",
358
- DiscardInSpreadPattern: 1053, "1053": "DiscardInSpreadPattern",
359
- SpreadDiscardInRecordPattern: 1054, "1054": "SpreadDiscardInRecordPattern",
360
- MispositionedSpreadInRecordPattern: 1055, "1055": "MispositionedSpreadInRecordPattern",
361
- InterpolatedNameRecordPattern: 1056, "1056": "InterpolatedNameRecordPattern",
362
- BadOmitKeyRecordPattern: 1057, "1057": "BadOmitKeyRecordPattern",
363
- AmbiguousRangePattern: 1058, "1058": "AmbiguousRangePattern",
364
- DuplicateSpreadPattern: 1059, "1059": "DuplicateSpreadPattern",
365
- MispositionedRestParameter: 1060, "1060": "MispositionedRestParameter",
366
- UndefinedVariableAssignment: 1061, "1061": "UndefinedVariableAssignment",
367
- ImmutableVariableAssignment: 1062, "1062": "ImmutableVariableAssignment",
368
- UninitializedVariable: 1063, "1063": "UninitializedVariable",
369
- DuplicateVariableDeclaration: 1064, "1064": "DuplicateVariableDeclaration",
370
- UnexpectedBreak: 1065, "1065": "UnexpectedBreak",
371
- UnexpectedContinue: 1066, "1066": "UnexpectedContinue",
372
- MisuseOfGlobalKeyword: 1067, "1067": "MisuseOfGlobalKeyword",
373
- BadOmitKeyRecordExpression: 1068, "1068": "BadOmitKeyRecordExpression",
374
- UnassignableExpression: 1069, "1069": "UnassignableExpression",
354
+ MutInRebindPattern: 1049, "1049": "MutInRebindPattern",
355
+ ConstantInBindPattern: 1050, "1050": "ConstantInBindPattern",
356
+ MutInDiscardPattern: 1051, "1051": "MutInDiscardPattern",
357
+ DiscardInSpreadPattern: 1052, "1052": "DiscardInSpreadPattern",
358
+ SpreadDiscardInRecordPattern: 1053, "1053": "SpreadDiscardInRecordPattern",
359
+ MispositionedSpreadInRecordPattern: 1054, "1054": "MispositionedSpreadInRecordPattern",
360
+ InterpolatedNameRecordPattern: 1055, "1055": "InterpolatedNameRecordPattern",
361
+ BadOmitKeyRecordPattern: 1056, "1056": "BadOmitKeyRecordPattern",
362
+ AmbiguousRangePattern: 1057, "1057": "AmbiguousRangePattern",
363
+ DuplicateSpreadPattern: 1058, "1058": "DuplicateSpreadPattern",
364
+ MispositionedRestParameter: 1059, "1059": "MispositionedRestParameter",
365
+ UndefinedVariableAssignment: 1060, "1060": "UndefinedVariableAssignment",
366
+ ImmutableVariableAssignment: 1061, "1061": "ImmutableVariableAssignment",
367
+ UninitializedVariable: 1062, "1062": "UninitializedVariable",
368
+ DuplicateVariableDeclaration: 1063, "1063": "DuplicateVariableDeclaration",
369
+ UnexpectedBreak: 1064, "1064": "UnexpectedBreak",
370
+ UnexpectedContinue: 1065, "1065": "UnexpectedContinue",
371
+ MisuseOfGlobalKeyword: 1066, "1066": "MisuseOfGlobalKeyword",
372
+ BadOmitKeyRecordExpression: 1067, "1067": "BadOmitKeyRecordExpression",
373
+ UnassignableExpression: 1068, "1068": "UnassignableExpression",
374
+ NonNumberInRange: 1069, "1069": "NonNumberInRange",
375
+ NonNumberOrStringInComparison: 1070, "1070": "NonNumberOrStringInComparison",
376
+ NonNumberInArithmetic: 1071, "1071": "NonNumberInArithmetic",
377
+ NonBooleanInLogical: 1072, "1072": "NonBooleanInLogical",
375
378
  ErrorEnd: 1999, "1999": "ErrorEnd",
376
379
  WarningStart: 2000, "2000": "WarningStart",
377
380
  UnnecessaryParentheses: 2001, "2001": "UnnecessaryParentheses",
378
381
  MisleadingNilVariable: 2002, "2002": "MisleadingNilVariable",
379
382
  UnnecessaryIrrefutablePattern: 2003, "2003": "UnnecessaryIrrefutablePattern",
380
- MisleadingOrInIrrefutablePattern: 2004, "2004": "MisleadingOrInIrrefutablePattern",
381
- MatchExpressionHasNoCases: 2005, "2005": "MatchExpressionHasNoCases",
382
- GlobalVariableNotDeclared: 2006, "2006": "GlobalVariableNotDeclared",
383
+ MatchExpressionHasNoCases: 2004, "2004": "MatchExpressionHasNoCases",
384
+ GlobalVariableNotDeclared: 2005, "2005": "GlobalVariableNotDeclared",
383
385
  WarningEnd: 2999, "2999": "WarningEnd",
384
386
  InfoStart: 3000, "3000": "InfoStart",
385
387
  InfoEnd: 3999, "3999": "InfoEnd",
package/lib/wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirascript/wasm",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "description": "MiraScript compiler for WebAssembly",