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
The stream implementation is not following the nodejs spec. For instance, when an error even happens at the end of a stream, then the finish event may be emitted before the error event is.
This snippet will first print "finish" and then "error" (and the pipeline promise will resolve instead of reject)
This is probably causing issues in other places as well. When combining streams (using the experimental compose nodejs builtin, or when using pumpify), we're getting odd behaviour.
This snippet will print function (which is correct, as it's an RDF-JS term)
The snippet below prints object, for both of the on-data handlers. This seems to be JSON (output of the graphy isolate() function). Expecting the same result as above here (RDF-JS), as we're only wrapping the stream in another one
I expect these issues to be caused by extending some stream built-in function such as the pipe function in the graphy stream implementation (which may lead to compatability issues with other streams/stream utilities, as described here)
The text was updated successfully, but these errors were encountered:
LaurensRietveld
changed the title
Stream implementation issues and incompatabilities
Stream implementation issues and incompatibilities
May 11, 2023
The stream implementation is not following the nodejs spec. For instance, when an error even happens at the end of a stream, then the
finish
event may be emitted before the error event is.This snippet will first print "finish" and then "error" (and the pipeline promise will resolve instead of reject)
This is probably causing issues in other places as well. When combining streams (using the experimental compose nodejs builtin, or when using pumpify), we're getting odd behaviour.
This snippet will print
function
(which is correct, as it's an RDF-JS term)The snippet below prints
object
, for both of the on-data handlers. This seems to be JSON (output of the graphyisolate()
function). Expecting the same result as above here (RDF-JS), as we're only wrapping the stream in another oneI expect these issues to be caused by extending some stream built-in function such as the
pipe
function in the graphy stream implementation (which may lead to compatability issues with other streams/stream utilities, as described here)The text was updated successfully, but these errors were encountered: