This is a testharness.js-based test. [FAIL] terminate() should abort writable immediately after readable.cancel() promise_rejects_js: closed should reject with TypeError function "function() { throw e; }" threw object "[object Object]" ("cancelReason") expected instance of function "function TypeError() { [native code] }" ("TypeError") Harness: the test ran to completion.