Skip to content

Error on complete when using .bufferTime().take() #1763

@msrch

Description

@msrch

RxJS version:
[email protected]

Code to reproduce:

jsbin example

var source = Rx.Observable.interval(100)

source
  .bufferTime(1000)
  .take(2)
  .subscribe(x => console.log(x))

Expected behavior:

Should complete without any errors.

Actual behavior:

Throws an error on complete:

TypeError: Cannot read property 'splice' of null

Additional information:

Does work in RxJS 4 - jsbin example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions