mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/64301 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
16 lines
474 B
JavaScript
16 lines
474 B
JavaScript
'use strict';
|
|
|
|
// This test will fail because the implementation does not properly
|
|
// handle the case when the path is a Buffer and the function is called
|
|
// in recursive mode.
|
|
|
|
// Refs: https://github.com/nodejs/node/issues/58892
|
|
|
|
const common = require('../common');
|
|
|
|
const { readdir } = require('node:fs');
|
|
const { join } = require('node:path');
|
|
|
|
const testDirPath = join(__dirname, '..', '..');
|
|
readdir(Buffer.from(testDirPath), { recursive: true }, common.mustCall());
|