FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix a bug that encode() and decode() are not re-entrant by gfx · Pull Request #257 · msgpack/msgpack-javascript · GitHub

Fix a bug that encode() and decode() are not re-entrant - #257

Merged
gfx merged 3 commits into
mainfrom
regression_195
Feb 6, 2025
Merged

Fix a bug that encode() and decode() are not re-entrant#257
gfx merged 3 commits into
mainfrom
regression_195

Conversation

gfx commented Feb 5, 2025
edited
Loading

Copy link
Copy Markdown
Member

close #195

$ npx mocha test/reuse-instances-with-extensions.test.ts


  reuse instances with extensions
    1) should encode and decode a bigint


  0 passing (5ms)
  1 failing

  1) reuse instances with extensions
       should encode and decode a bigint:
     RangeError: Extra 6 of 9 byte(s) found at buffer[3]
      at Decoder.createExtraByteError (src/Decoder.ts:274:12)
      at Decoder.decode (src/Decoder.ts:287:18)
      at Context.<anonymous> (test/reuse-instances-with-extensions.test.ts:38:26)
      at processImmediate (node:internal/timers:491:21)

gfx merged commit c15b989 into main Feb 6, 2025
gfx deleted the regression_195 branch February 6, 2025 12:46
gfx changed the title add a regression test based on #195 Fix a bug that encode() and decode() are not re-entrant #195 Feb 6, 2025
gfx changed the title Fix a bug that encode() and decode() are not re-entrant #195 Fix a bug that encode() and decode() are not re-entrant Feb 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use reusable encoders/decoders in custom codecs

1 participant


Back | FazBrowse Home | New Git URL