Skip to content

Commit 4bd1c12

Browse files
authored
chore: typescript: 4.7.4 → 5.5.4 (#2868)
1 parent f79391c commit 4bd1c12

File tree

7 files changed

+18
-11
lines changed

7 files changed

+18
-11
lines changed

NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ under the licensing terms detailed in LICENSE:
5757
* Bach Le <[email protected]>
5858
* Xinquan Xu <[email protected]>
5959
* Matt Johnson-Pint <[email protected]>
60+
* Fabián Heredia Montiel <[email protected]>
6061

6162
Portions of this software are derived from third-party works licensed under
6263
the following terms:

package-lock.json

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"esbuild": "^0.19.4",
3737
"eslint": "^8.33.0",
3838
"glob": "^10.3.0",
39-
"typescript": "~4.7.4"
39+
"typescript": "^5.5.4"
4040
},
4141
"type": "module",
4242
"exports": {

src/builtins.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,7 @@ function builtin_max(ctx: BuiltinFunctionContext): ExpressionRef {
16231623
} else {
16241624
arg1 = compiler.compileExpression(operands[1], type, Constraints.ConvImplicit | Constraints.MustWrap);
16251625
}
1626+
// @ts-expect-error
16261627
let op: BinaryOp = -1;
16271628
switch (type.kind) {
16281629
case TypeKind.I8:
@@ -1691,6 +1692,7 @@ function builtin_min(ctx: BuiltinFunctionContext): ExpressionRef {
16911692
} else {
16921693
arg1 = compiler.compileExpression(operands[1], type, Constraints.ConvImplicit | Constraints.MustWrap);
16931694
}
1695+
// @ts-expect-error
16941696
let op: BinaryOp = -1;
16951697
switch (type.kind) {
16961698
case TypeKind.I8:

src/tokenizer.ts

+3
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,11 @@ export class Tokenizer extends DiagnosticEmitter {
463463
end: i32 = 0;
464464

465465
pos: i32 = 0;
466+
// @ts-expect-error
466467
token: Token = -1;
467468
tokenPos: i32 = 0;
468469

470+
// @ts-expect-error
469471
nextToken: Token = -1;
470472
nextTokenPos: i32 = 0;
471473
nextTokenOnNewLine: OnNewLine = OnNewLine.Unknown;
@@ -1055,6 +1057,7 @@ export class Tokenizer extends DiagnosticEmitter {
10551057
}
10561058

10571059
clearNextToken(): void {
1060+
// @ts-expect-error
10581061
this.nextToken = -1;
10591062
this.nextTokenPos = 0;
10601063
this.nextTokenOnNewLine = OnNewLine.Unknown;

tests/compiler/std/string-encoding.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ testUTF8Decode();
118118
function testUTF8DecodeNullTerminated(): void {
119119
var buf = String.UTF8.encode(str, true);
120120
assert(String.UTF8.decode(buf, true) == str);
121-
var str2 = "123\0456";
121+
var str2 = "123\x00456";
122122
assert(String.UTF8.byteLength(str2, true) == 4);
123123
var buf2 = String.UTF8.encode(str2, true);
124124
assert(buf2.byteLength == 4);

tests/compiler/std/string.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ assert(String.fromCharCode(65600) == "@");
2727
assert(String.fromCharCode(54) == "6");
2828
assert(String.fromCharCode(0x10000 + 54) == "6");
2929
assert(String.fromCharCode(0xD800, 0xDF00) == "𐌀");
30-
assert(String.fromCharCodes([0, 54]) == "\06");
30+
assert(String.fromCharCodes([0, 54]) == "\x006");
3131
assert(String.fromCharCodes([65, 66, 67]) == "ABC");
3232
assert(String.fromCharCodes([0xD834, 0xDF06, 0x61, 0xD834, 0xDF07]) == "\uD834\uDF06a\uD834\uDF07");
3333

0 commit comments

Comments
 (0)