mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
10 lines
183 B
JavaScript
10 lines
183 B
JavaScript
|
'use strict';
|
||
|
|
||
|
require('../common');
|
||
|
const assert = require('node:assert');
|
||
|
|
||
|
assert.throws(
|
||
|
() => ReadableStream.from({}),
|
||
|
{ code: 'ERR_ARG_NOT_ITERABLE', name: 'TypeError' },
|
||
|
);
|