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
return this.utf8Write(string, offset, length);
^
RangeError: Offset is out of bounds
at RangeError (native)
at Buffer.write (buffer.js:761:21)
at Object.writeString (D:\Projects\schemapack\schemapack.js:67:29)
at eval (eval at getCompiledSchema (D:\Projects\schemapack\schemapack.js:374:24), <anonymous>:3:209)
at Object.encode (D:\Projects\schemapack\schemapack.js:389:14)
at Object.<anonymous> (D:\Projects\schempack_test\test.js:5:25)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)```
The text was updated successfully, but these errors were encountered:
Hello! Looks like there was a change in the utf8Write implementation in Node between versions 6.3.1 and 6.4. I'll make an issue on their Github to see if it's intentional. If so, I'll just patch schemapack to check for strings of length 0 before writing.
Hello,
Only affects latest NodeJS (6.4.0) Version. 6.3.1 worked fine.
Output:
The text was updated successfully, but these errors were encountered: