fix(python): preserve signed code-object line numbers

Fixes #6490
This commit is contained in:
morluto
2026-10-23 16:30:49 +08:00
parent e44899d510
commit b58aa63796
7 changed files with 127 additions and 9 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ class MarshalReader {
this.layout === "py311"
? asString(this.readObject(depth + 1), "co_qualname")
: null;
const firstlineno = this.u32();
const firstlineno = this.i32();
const linetable = asBytes(this.readObject(depth + 1), "co_linetable");
const exceptiontable =
this.layout === "py311"