async function main()
{
const value = await first(of(42).pipe(timeout(100)))
console.log(value)
}
main()`
Expected behavior:
output '42' to the console
Actual behavior:
outputs 'undefined' to the console
Additional information:
commit b0c90cb0798639b2fc878d4e9b5521bfb2bb63d8 introduced this bug by renaming 'value' to 'val' in src/asynciterable/operators/timeout.ts at line 57
IxJS version: 4.3.1
Code to reproduce: `const {of, first} = require('ix/asynciterable') const {timeout} = require('ix/asynciterable/operators')
async function main() { const value = await first(of(42).pipe(timeout(100))) console.log(value) }
main()`
Expected behavior: output '42' to the console
Actual behavior: outputs 'undefined' to the console
Additional information: commit b0c90cb0798639b2fc878d4e9b5521bfb2bb63d8 introduced this bug by renaming 'value' to 'val' in src/asynciterable/operators/timeout.ts at line 57