pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/AssemblyScript/assemblyscript/commit/4bd1c122461eefdc64082f16677e239b9e8ea93f

ub.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> chore: typescript: 4.7.4 → 5.5.4 (#2868) · AssemblyScript/assemblyscript@4bd1c12 · GitHub
Skip to content

Commit 4bd1c12

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

7 files changed

Lines changed: 18 additions & 11 deletions

File tree

NOTICE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ under the licensing terms detailed in LICENSE:
5757
* Bach Le <bach@bullno1.com>
5858
* Xinquan Xu <xinquan0203@163.com>
5959
* Matt Johnson-Pint <mattjohnsonpint@gmail.com>
60+
* Fabián Heredia Montiel <fabianhjr@users.noreply.github.com>
6061

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

package-lock.json

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy