Skip to content

Commit 56cb233

Browse files
committed
Fix BunProfile ObjectGroup/ILType consistency
Upstream added strict assertions that instanceType.properties and instanceType.methods must exactly match the ObjectGroup's keys. Two groups had drift: - BunServer: ILType listed 'upgrade' method, ObjectGroup didn't define it - Bun.Cookie: ILType listed 'expires' and 'maxAge', ObjectGroup omitted them Both caused startup assertion failures post-upstream-sync.
1 parent 67ea97d commit 56cb233

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/Fuzzilli/Profiles/BunProfile.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ public let bunServerGroup = ObjectGroup(
841841
"ref": [] => .undefined,
842842
"unref": [] => .undefined,
843843
"requestIP": [.jsAnything] => .jsAnything,
844+
"upgrade": [.jsAnything, .opt(.object())] => .boolean,
844845
]
845846
)
846847

@@ -864,9 +865,11 @@ public let bunCookieGroup = ObjectGroup(
864865
"value": .string,
865866
"domain": .string,
866867
"path": .string,
868+
"expires": .jsAnything,
867869
"secure": .boolean,
868870
"httpOnly": .boolean,
869871
"sameSite": .string,
872+
"maxAge": .integer,
870873
],
871874
methods: [
872875
"toString": [] => .string,

0 commit comments

Comments
 (0)