protobuf.js
protobuf.js copied to clipboard
Does it support running on quickjs?
trafficstars
I'm trying to use this library on QuickJS but the run prompt cannot be found. It looks like this:
"const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); TypeError: Cannot read properties of undefined (reading 'default')
So, I used CommonJS to output, and it also reported errors. Doesn't seem to load correctly
See https://github.com/protobufjs/protobuf.js/issues/2040 (a quickfix is to fix the line using sed or manually after compilation)