-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
Hello,
Only affects latest NodeJS (6.4.0) Version. 6.3.1 worked fine.
var sp = require('../schemapack')
var stringSchema = sp.build('string')
var data = stringSchema.encode('')
var decoded = stringSchema.decode(data)
console.log(decoded)Output:
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)```
Metadata
Metadata
Assignees
Labels
No labels