You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The structure that would be encoded here looks like
822
+
//
823
+
// [[[Float.infinity]]]
824
+
//
825
+
// The wrapper asks for an unkeyed container ([^]), gets a super encoder, and creates a nested container into that ([[^]]).
826
+
// We then encode an array into that ([[[^]]]), which happens to be a value that causes us to throw an error.
827
+
//
828
+
// The issue at hand reproduces when you have a referencing encoder (superEncoder() creates one) that has a container on the stack (unkeyedContainer() adds one) that encodes a value going through box_() (Array does that) that encodes something which throws (Float.infinity does that).
829
+
// When reproducing, this will cause a test failure via fatalError().
// The structure that would be encoded here looks like
247
+
//
248
+
// <array>
249
+
// <array>
250
+
// <array>
251
+
// [throwing]
252
+
// </array>
253
+
// </array>
254
+
// </array>
255
+
//
256
+
// The wrapper asks for an unkeyed container ([^]), gets a super encoder, and creates a nested container into that ([[^]]).
257
+
// We then encode an array into that ([[[^]]]), which happens to be a value that causes us to throw an error.
258
+
//
259
+
// The issue at hand reproduces when you have a referencing encoder (superEncoder() creates one) that has a container on the stack (unkeyedContainer() adds one) that encodes a value going through box_() (Array does that) that encodes something which throws (Throwing does that).
260
+
// When reproducing, this will cause a test failure via fatalError().
0 commit comments