Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: typescript: 4.7.4 → 5.5.4 #2868

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ under the licensing terms detailed in LICENSE:
* Bach Le <[email protected]>
* Xinquan Xu <[email protected]>
* Matt Johnson-Pint <[email protected]>
* Fabián Heredia Montiel <[email protected]>

Portions of this software are derived from third-party works licensed under
the following terms:
Expand Down
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"esbuild": "^0.19.4",
"eslint": "^8.33.0",
"glob": "^10.3.0",
"typescript": "~4.7.4"
"typescript": "^5.5.4"
},
"type": "module",
"exports": {
Expand Down
2 changes: 2 additions & 0 deletions src/builtins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,7 @@ function builtin_max(ctx: BuiltinFunctionContext): ExpressionRef {
} else {
arg1 = compiler.compileExpression(operands[1], type, Constraints.ConvImplicit | Constraints.MustWrap);
}
// @ts-expect-error
let op: BinaryOp = -1;
switch (type.kind) {
case TypeKind.I8:
Expand Down Expand Up @@ -1691,6 +1692,7 @@ function builtin_min(ctx: BuiltinFunctionContext): ExpressionRef {
} else {
arg1 = compiler.compileExpression(operands[1], type, Constraints.ConvImplicit | Constraints.MustWrap);
}
// @ts-expect-error
let op: BinaryOp = -1;
switch (type.kind) {
case TypeKind.I8:
Expand Down
3 changes: 3 additions & 0 deletions src/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ export class Tokenizer extends DiagnosticEmitter {
end: i32 = 0;

pos: i32 = 0;
// @ts-expect-error
token: Token = -1;
tokenPos: i32 = 0;

// @ts-expect-error
nextToken: Token = -1;
nextTokenPos: i32 = 0;
nextTokenOnNewLine: OnNewLine = OnNewLine.Unknown;
Expand Down Expand Up @@ -1055,6 +1057,7 @@ export class Tokenizer extends DiagnosticEmitter {
}

clearNextToken(): void {
// @ts-expect-error
this.nextToken = -1;
this.nextTokenPos = 0;
this.nextTokenOnNewLine = OnNewLine.Unknown;
Expand Down
2 changes: 1 addition & 1 deletion tests/compiler/std/string-encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ testUTF8Decode();
function testUTF8DecodeNullTerminated(): void {
var buf = String.UTF8.encode(str, true);
assert(String.UTF8.decode(buf, true) == str);
var str2 = "123\0456";
var str2 = "123\x00456";
assert(String.UTF8.byteLength(str2, true) == 4);
var buf2 = String.UTF8.encode(str2, true);
assert(buf2.byteLength == 4);
Expand Down
2 changes: 1 addition & 1 deletion tests/compiler/std/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ assert(String.fromCharCode(65600) == "@");
assert(String.fromCharCode(54) == "6");
assert(String.fromCharCode(0x10000 + 54) == "6");
assert(String.fromCharCode(0xD800, 0xDF00) == "𐌀");
assert(String.fromCharCodes([0, 54]) == "\06");
assert(String.fromCharCodes([0, 54]) == "\x006");
assert(String.fromCharCodes([65, 66, 67]) == "ABC");
assert(String.fromCharCodes([0xD834, 0xDF06, 0x61, 0xD834, 0xDF07]) == "\uD834\uDF06a\uD834\uDF07");

Expand Down
Loading