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
I'm unsure if this is a regression or if it was never intended behavior in the first place.
Previously, passing text data as a byte array to makeReader would still return a functioning text reader. Now it throws an error:
varionJs=require("ion-js")varinput="{foo:bar}";vararr=newUint8Array(input.length)// A more realistic example would be loading a text file from disk as a Buffer (node.js) or Blob (HTML5)for(vari=0;i<input.length;i++)arr[i]=input.charCodeAt(i)varreader=ionJs.makeReader(arr);console.log(reader.next().name);
I'm unsure if this is a regression or if it was never intended behavior in the first place.
Previously, passing text data as a byte array to
makeReader
would still return a functioning text reader. Now it throws an error:2.0.0: https://runkit.com/embed/vz9xv8h87vqp
2.1.2: https://runkit.com/embed/ee8ubusq2qrx (contains more detailed stack trace)
The text was updated successfully, but these errors were encountered: