Sage/f-promise

context is not always restored by parallel operations

bjouhier opened this issue · 0 comments

To repro, modify the contexts test (

var promises = [run(() => testContext(3)), run(() => testContext(5))];
deepEqual(promises.map(wait), [7, 11]);
) as follow:

        isObject(context());
        var promises = [run(() => testContext(3)), run(() => testContext(5))];
        deepEqual(promises.map(wait), [7, 11]);
        isObject(context());

the second isObject test fails.