1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore: update std submodule to 0.221.0 (#23112)

This commit is contained in:
Asher Gomez 2024-04-02 12:57:05 +11:00 committed by GitHub
parent b0c1bd82a8
commit 858abbe745
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 15 additions and 15 deletions

View file

@ -1,4 +1,4 @@
import { copy } from "../../tests/util/std/streams/copy.ts";
import { copy } from "../../tests/util/std/io/copy.ts";
const addr = Deno.args[0] || "0.0.0.0:4544";
const [hostname, port] = addr.split(":");
const listener = Deno.listen({ hostname, port: Number(port) });

View file

@ -152,7 +152,7 @@ export class TextProtoReader {
//TODO(SmashingQuasar): Kept skipSpace to preserve behavior but it should be looked into to check if it makes sense when this is used.
if (r !== null && this.skipSpace(r.line) !== 0) {
line = concat(line, r.line);
line = concat([line, r.line]);
}
} while (r !== null && r.more);

View file

@ -85,7 +85,7 @@ Deno.test(async function blobStream() {
const read = async (): Promise<void> => {
const { done, value } = await reader.read();
if (!done && value) {
bytes = concat(bytes, value);
bytes = concat([bytes, value]);
return read();
}
};

View file

@ -11,7 +11,7 @@ import {
assertRejects,
assertThrows,
} from "./test_util.ts";
import { writeAllSync } from "../util/std/streams/write_all.ts";
import { writeAllSync } from "../util/std/io/write_all.ts";
const MAX_SIZE = 2 ** 32 - 2;
// N controls how many iterations of certain checks are performed.

View file

@ -8,7 +8,7 @@ import {
assertRejects,
assertThrows,
} from "./test_util.ts";
import { copy } from "@std/streams/copy.ts";
import { copy } from "@std/io/copy.ts";
// Note tests for Deno.FsFile.setRaw is in integration tests.

View file

@ -8,8 +8,8 @@ import {
assertThrows,
} from "./test_util.ts";
import { BufReader, BufWriter } from "@std/io/mod.ts";
import { readAll } from "@std/streams/read_all.ts";
import { writeAll } from "@std/streams/write_all.ts";
import { readAll } from "@std/io/read_all.ts";
import { writeAll } from "@std/io/write_all.ts";
import { TextProtoReader } from "../testdata/run/textproto.ts";
const encoder = new TextEncoder();

View file

@ -7,7 +7,7 @@ import {
assertThrows,
fail,
} from "@std/assert/mod.ts";
import { fromFileUrl, relative, sep } from "@std/path/mod.ts";
import { fromFileUrl, relative, SEPARATOR } from "@std/path/mod.ts";
import * as workerThreads from "node:worker_threads";
import { EventEmitter, once } from "node:events";
@ -320,7 +320,7 @@ Deno.test({
name: "[node/worker_threads] Worker with relative path",
async fn() {
const worker = new workerThreads.Worker(
`.${sep}` + relative(
`.${SEPARATOR}` + relative(
Deno.cwd(),
fromFileUrl(new URL("./testdata/worker_threads.mjs", import.meta.url)),
),

@ -1 +1 @@
Subproject commit e0ef24091e87f84d44d495d432d611625b281249
Subproject commit 7d419485c74bcdc4a03857dd4d427d4442b058f3

View file

@ -34,7 +34,7 @@ import {
} from "./runner/utils.ts";
import { pooledMap } from "../util/std/async/pool.ts";
import { blue, bold, green, red, yellow } from "../util/std/fmt/colors.ts";
import { writeAll, writeAllSync } from "../util/std/streams/write_all.ts";
import { writeAll, writeAllSync } from "../util/std/io/write_all.ts";
import { saveExpectation } from "./runner/utils.ts";
class TestFilter {

View file

@ -4,11 +4,11 @@
/** This copies the test files according to the config file `tests/node_compat/config.jsonc` */
import { walk } from "@std/fs/walk.ts";
import { sep } from "@std/path/mod.ts";
import { SEPARATOR } from "@std/path/constants.ts";
import { ensureFile } from "@std/fs/ensure_file.ts";
import { writeAll } from "@std/streams/write_all.ts";
import { writeAll } from "@std/io/write_all.ts";
import { withoutAll } from "@std/collections/without_all.ts";
import { relative } from "@std/path/posix.ts";
import { relative } from "@std/path/posix/relative.ts";
import { config, ignoreList } from "../../tests/node_compat/common.ts";
@ -110,7 +110,7 @@ async function copyTests() {
console.log("Copying test files...");
for await (const entry of walk(VENDORED_NODE_TEST, { skip: ignoreList })) {
const fragments = entry.path.split(sep);
const fragments = entry.path.split(SEPARATOR);
// suite is the directory name after test/. For example, if the file is
// "node_compat/node/test/fixtures/policy/main.mjs"
// then suite is "fixtures/policy"