Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mert Can Altin authored and Mert Can Altin committed Oct 17, 2024
1 parent 99a2949 commit d9118d1
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ const {
ObjectAssign,
ObjectDefineProperty,
ObjectPrototypeHasOwnProperty,
PromiseWithResolvers,
RegExpPrototypeExec,
SafeSet,
StringPrototypeIncludes,
StringPrototypeSlice,
StringPrototypeToUpperCase,
SymbolDispose,
PromiseWithResolvers,
} = primordials;

const {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/abort_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const {
ObjectDefineProperty,
ObjectSetPrototypeOf,
PromiseResolve,
PromiseWithResolvers,
SafeFinalizationRegistry,
SafeSet,
SafeWeakRef,
Symbol,
SymbolToStringTag,
PromiseWithResolvers,
} = primordials;

const {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const {
ObjectSetPrototypeOf,
PromisePrototypeThen,
PromiseReject,
PromiseWithResolvers,
RegExpPrototypeExec,
RegExpPrototypeSymbolReplace,
StringPrototypeSplit,
Expand All @@ -17,7 +18,6 @@ const {
SymbolIterator,
SymbolToStringTag,
Uint8Array,
PromiseWithResolvers,
} = primordials;

const {
Expand Down Expand Up @@ -478,7 +478,7 @@ function createBlobFromFilePath(path, options) {
}

function arrayBuffer(blob) {
const { promise, resolve, reject } = createDeferredPromise();
const { promise, resolve, reject } = PromiseWithResolvers();
const reader = blob[kHandle].getReader();
const buffers = [];
const readNext = () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/fs/watchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ async function* watch(filename, options = kEmptyObject) {

while (!signal?.aborted) {
yield await promise;
({ promise, resolve, reject } = createDeferredPromise());
({ promise, resolve, reject } = PromiseWithResolvers());
}
throw new AbortError(undefined, { cause: signal?.reason });
} finally {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const {
ArrayPrototypeSome,
ArrayPrototypeSort,
ObjectAssign,
PromiseWithResolvers,
PromisePrototypeThen,
PromiseResolve,
PromiseWithResolvers,
SafeMap,
SafePromiseAll,
SafePromiseAllReturnVoid,
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/webstreams/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const {
ArrayPrototypeMap,
Boolean,
ObjectEntries,
PromiseWithResolvers,
PromisePrototypeThen,
PromiseResolve,
PromiseWithResolvers,
SafePromiseAll,
SafePromisePrototypeFinally,
SafeSet,
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const {
ObjectDefineProperties,
ObjectSetPrototypeOf,
Promise,
PromiseWithResolvers,
PromisePrototypeThen,
PromiseReject,
PromiseResolve,
PromiseWithResolvers,
SafePromiseAll,
Symbol,
SymbolAsyncIterator,
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

const {
ObjectDefineProperties,
PromiseWithResolvers,
PromiseResolve,
PromiseWithResolvers,
ReflectConstruct,
} = primordials;

Expand Down Expand Up @@ -178,7 +178,7 @@ class CrossRealmTransformWritableSink {
this[kState] = {
port,
controller: undefined,
backpressurePromise: createDeferredPromise(),
backpressurePromise: PromiseWithResolvers(),
unref,
};

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/webstreams/transformstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const {
FunctionPrototypeCall,
ObjectDefineProperties,
ObjectSetPrototypeOf,
PromiseWithResolvers,
PromisePrototypeThen,
PromiseWithResolvers,
Symbol,
SymbolToStringTag,
} = primordials;
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/writablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const {
ObjectDefineProperties,
ObjectSetPrototypeOf,
Promise,
PromiseWithResolvers,
PromisePrototypeThen,
PromiseReject,
PromiseResolve,
PromiseWithResolvers,
Symbol,
SymbolToStringTag,
} = primordials;
Expand Down Expand Up @@ -557,7 +557,7 @@ const isWritableStreamDefaultController =
function createWritableStreamState() {
return {
__proto__: null,
close: createDeferredPromise(),
close: PromiseWithResolvers(),
closeRequest: {
__proto__: null,
promise: undefined,
Expand Down

0 comments on commit d9118d1

Please sign in to comment.