Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan <[email protected]>
  • Loading branch information
joanlopez and codebien authored Jun 6, 2024
1 parent b578b7e commit 28a6b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/experimental/streams/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (mi *ModuleInstance) NewReadableStreamDefaultReader(call goja.ConstructorCa
// NewReadableStreamForReader is the equivalent of [NewReadableStreamDefaultReader] but to initialize
// a new [ReadableStream] from a given [io.Reader] in Go code.
// It is useful for those situations when a [io.Reader] needs to be surfaced up to the JS runtime.
func NewReadableStreamForReader(vu modules.VU, reader io.Reader) *goja.Object {
func NewReadableStreamFromReader(vu modules.VU, reader io.Reader) *goja.Object {
rt := vu.Runtime()
return newReadableStream(vu, goja.ConstructorCall{
Arguments: []goja.Value{rt.ToValue(underlyingSourceForReader(vu, reader))},
Expand Down

0 comments on commit 28a6b50

Please sign in to comment.