mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
chore: update dlint to v0.68.0 for internal (#26711)
This commit is contained in:
parent
d95f06f20b
commit
fb1d33a711
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
? Deno.args
|
? Deno.args
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
? Deno.args
|
? Deno.args
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
? Deno.args
|
? Deno.args
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-console no-process-globals
|
||||||
// deno-lint-ignore-file no-console
|
|
||||||
|
|
||||||
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
const queueMicrotask = globalThis.queueMicrotask || process.nextTick;
|
||||||
let [total, count] = typeof Deno !== "undefined"
|
let [total, count] = typeof Deno !== "undefined"
|
||||||
|
@ -20,6 +20,7 @@ import {
|
|||||||
notImplemented,
|
notImplemented,
|
||||||
TextEncodings,
|
TextEncodings,
|
||||||
} from "ext:deno_node/_utils.ts";
|
} from "ext:deno_node/_utils.ts";
|
||||||
|
import { type Buffer } from "node:buffer";
|
||||||
|
|
||||||
export type CallbackWithError = (err: ErrnoException | null) => void;
|
export type CallbackWithError = (err: ErrnoException | null) => void;
|
||||||
|
|
||||||
|
@ -147,8 +147,8 @@ export function open(
|
|||||||
|
|
||||||
export function openPromise(
|
export function openPromise(
|
||||||
path: string | Buffer | URL,
|
path: string | Buffer | URL,
|
||||||
flags?: openFlags = "r",
|
flags: openFlags = "r",
|
||||||
mode? = 0o666,
|
mode = 0o666,
|
||||||
): Promise<FileHandle> {
|
): Promise<FileHandle> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
open(path, flags, mode, (err, fd) => {
|
open(path, flags, mode, (err, fd) => {
|
||||||
|
@ -15,6 +15,7 @@ import { maybeCallback } from "ext:deno_node/_fs/_fs_common.ts";
|
|||||||
import { validateInteger } from "ext:deno_node/internal/validators.mjs";
|
import { validateInteger } from "ext:deno_node/internal/validators.mjs";
|
||||||
import * as io from "ext:deno_io/12_io.js";
|
import * as io from "ext:deno_io/12_io.js";
|
||||||
import { op_fs_seek_async, op_fs_seek_sync } from "ext:core/ops";
|
import { op_fs_seek_async, op_fs_seek_sync } from "ext:core/ops";
|
||||||
|
import process from "node:process";
|
||||||
|
|
||||||
type Callback = (
|
type Callback = (
|
||||||
err: ErrnoException | null,
|
err: ErrnoException | null,
|
||||||
|
@ -29,6 +29,7 @@ import {
|
|||||||
} from "ext:deno_node/internal/validators.mjs";
|
} from "ext:deno_node/internal/validators.mjs";
|
||||||
import { Buffer } from "node:buffer";
|
import { Buffer } from "node:buffer";
|
||||||
import { KeyFormat, KeyType } from "ext:deno_node/internal/crypto/types.ts";
|
import { KeyFormat, KeyType } from "ext:deno_node/internal/crypto/types.ts";
|
||||||
|
import process from "node:process";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
op_node_generate_dh_group_key,
|
op_node_generate_dh_group_key,
|
||||||
|
@ -38,6 +38,7 @@ import {
|
|||||||
ERR_INVALID_ARG_TYPE,
|
ERR_INVALID_ARG_TYPE,
|
||||||
ERR_OUT_OF_RANGE,
|
ERR_OUT_OF_RANGE,
|
||||||
} from "ext:deno_node/internal/errors.ts";
|
} from "ext:deno_node/internal/errors.ts";
|
||||||
|
import { Buffer } from "node:buffer";
|
||||||
|
|
||||||
export { default as randomBytes } from "ext:deno_node/internal/crypto/_randomBytes.ts";
|
export { default as randomBytes } from "ext:deno_node/internal/crypto/_randomBytes.ts";
|
||||||
export {
|
export {
|
||||||
|
@ -126,6 +126,7 @@ ObjectSetPrototypeOf(HTTPParser.prototype, AsyncWrap.prototype);
|
|||||||
function defineProps(obj: object, props: Record<string, unknown>) {
|
function defineProps(obj: object, props: Record<string, unknown>) {
|
||||||
for (const entry of new SafeArrayIterator(ObjectEntries(props))) {
|
for (const entry of new SafeArrayIterator(ObjectEntries(props))) {
|
||||||
ObjectDefineProperty(obj, entry[0], {
|
ObjectDefineProperty(obj, entry[0], {
|
||||||
|
__proto__: null,
|
||||||
value: entry[1],
|
value: entry[1],
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
writable: true,
|
writable: true,
|
||||||
|
@ -182,6 +182,7 @@ function getContextOptions(options) {
|
|||||||
|
|
||||||
let defaultContextNameIndex = 1;
|
let defaultContextNameIndex = 1;
|
||||||
export function createContext(
|
export function createContext(
|
||||||
|
// deno-lint-ignore prefer-primordials
|
||||||
contextObject = {},
|
contextObject = {},
|
||||||
options = { __proto__: null },
|
options = { __proto__: null },
|
||||||
) {
|
) {
|
||||||
|
@ -696,6 +696,7 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
|
|||||||
// are lost.
|
// are lost.
|
||||||
let jupyterNs = undefined;
|
let jupyterNs = undefined;
|
||||||
ObjectDefineProperty(finalDenoNs, "jupyter", {
|
ObjectDefineProperty(finalDenoNs, "jupyter", {
|
||||||
|
__proto__: null,
|
||||||
get() {
|
get() {
|
||||||
if (jupyterNs) {
|
if (jupyterNs) {
|
||||||
return jupyterNs;
|
return jupyterNs;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
const assert = require("assert");
|
const assert = require("assert");
|
||||||
const debug = require('util').debuglog('test');
|
const debug = require('util').debuglog('test');
|
||||||
|
const process = require("process");
|
||||||
|
|
||||||
function onmessage(m) {
|
function onmessage(m) {
|
||||||
debug("CHILD got message:", m);
|
debug("CHILD got message:", m);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
|
// deno-lint-ignore-file no-node-globals
|
||||||
|
|
||||||
import {
|
import {
|
||||||
assert,
|
assert,
|
||||||
|
@ -56,12 +56,13 @@ async function dlint() {
|
|||||||
":!:cli/tsc/compiler.d.ts",
|
":!:cli/tsc/compiler.d.ts",
|
||||||
":!:runtime/examples/",
|
":!:runtime/examples/",
|
||||||
":!:target/",
|
":!:target/",
|
||||||
|
":!:tests/ffi/tests/test.js",
|
||||||
":!:tests/registry/**",
|
":!:tests/registry/**",
|
||||||
":!:tests/specs/**",
|
":!:tests/specs/**",
|
||||||
":!:tests/testdata/**",
|
":!:tests/testdata/**",
|
||||||
":!:tests/unit_node/testdata/**",
|
":!:tests/unit_node/testdata/**",
|
||||||
":!:tests/wpt/suite/**",
|
|
||||||
":!:tests/wpt/runner/**",
|
":!:tests/wpt/runner/**",
|
||||||
|
":!:tests/wpt/suite/**",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (!sourceFiles.length) {
|
if (!sourceFiles.length) {
|
||||||
|
@ -11,7 +11,7 @@ export { delay } from "@std/async/delay";
|
|||||||
|
|
||||||
// [toolName] --version output
|
// [toolName] --version output
|
||||||
const versions = {
|
const versions = {
|
||||||
"dlint": "dlint 0.60.0",
|
"dlint": "dlint 0.68.0",
|
||||||
};
|
};
|
||||||
|
|
||||||
const compressed = new Set(["ld64.lld", "rcodesign"]);
|
const compressed = new Set(["ld64.lld", "rcodesign"]);
|
||||||
@ -178,7 +178,7 @@ export function getPrebuiltToolPath(toolName) {
|
|||||||
return join(PREBUILT_TOOL_DIR, toolName + executableSuffix);
|
return join(PREBUILT_TOOL_DIR, toolName + executableSuffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
const commitId = "b8aac22e0cd7c1c6557a56a813fe0c25486fafee";
|
const commitId = "7a3a6fee951b3381c59aa4c907274957f324ce8c";
|
||||||
const downloadUrl =
|
const downloadUrl =
|
||||||
`https://raw.githubusercontent.com/denoland/deno_third_party/${commitId}/prebuilt/${platformDirName}`;
|
`https://raw.githubusercontent.com/denoland/deno_third_party/${commitId}/prebuilt/${platformDirName}`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user