summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/readline
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/readline')
-rw-r--r--ext/node/polyfills/internal/readline/callbacks.mjs3
-rw-r--r--ext/node/polyfills/internal/readline/emitKeypressEvents.mjs3
-rw-r--r--ext/node/polyfills/internal/readline/interface.mjs2
-rw-r--r--ext/node/polyfills/internal/readline/promises.mjs3
-rw-r--r--ext/node/polyfills/internal/readline/symbols.mjs3
-rw-r--r--ext/node/polyfills/internal/readline/utils.mjs3
6 files changed, 17 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/readline/callbacks.mjs b/ext/node/polyfills/internal/readline/callbacks.mjs
index 80d689dd5..51494b6b1 100644
--- a/ext/node/polyfills/internal/readline/callbacks.mjs
+++ b/ext/node/polyfills/internal/readline/callbacks.mjs
@@ -20,6 +20,9 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
"use strict";
import { ERR_INVALID_ARG_VALUE, ERR_INVALID_CURSOR_POS } from "ext:deno_node/internal/errors.ts";
diff --git a/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs b/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs
index 615909ab2..145dd18ff 100644
--- a/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs
+++ b/ext/node/polyfills/internal/readline/emitKeypressEvents.mjs
@@ -20,6 +20,9 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import { charLengthAt, CSI, emitKeys } from "ext:deno_node/internal/readline/utils.mjs";
import { kSawKeyPress } from "ext:deno_node/internal/readline/symbols.mjs";
import { clearTimeout, setTimeout } from "ext:deno_node/timers.ts";
diff --git a/ext/node/polyfills/internal/readline/interface.mjs b/ext/node/polyfills/internal/readline/interface.mjs
index bbb453df0..8f0eb5047 100644
--- a/ext/node/polyfills/internal/readline/interface.mjs
+++ b/ext/node/polyfills/internal/readline/interface.mjs
@@ -20,6 +20,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
// deno-lint-ignore-file camelcase no-inner-declarations no-this-alias
import { ERR_INVALID_ARG_VALUE, ERR_USE_AFTER_CLOSE } from "ext:deno_node/internal/errors.ts";
diff --git a/ext/node/polyfills/internal/readline/promises.mjs b/ext/node/polyfills/internal/readline/promises.mjs
index 650b8b018..dbcdd61d6 100644
--- a/ext/node/polyfills/internal/readline/promises.mjs
+++ b/ext/node/polyfills/internal/readline/promises.mjs
@@ -1,6 +1,9 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent, Inc. and other Node contributors.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
import { ArrayPrototypeJoin, ArrayPrototypePush } from "ext:deno_node/internal/primordials.mjs";
import { CSI } from "ext:deno_node/internal/readline/utils.mjs";
diff --git a/ext/node/polyfills/internal/readline/symbols.mjs b/ext/node/polyfills/internal/readline/symbols.mjs
index 3a05c64d2..a59bcbc7d 100644
--- a/ext/node/polyfills/internal/readline/symbols.mjs
+++ b/ext/node/polyfills/internal/readline/symbols.mjs
@@ -1,6 +1,9 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
export const kAddHistory = Symbol("_addHistory");
export const kDecoder = Symbol("_decoder");
export const kDeleteLeft = Symbol("_deleteLeft");
diff --git a/ext/node/polyfills/internal/readline/utils.mjs b/ext/node/polyfills/internal/readline/utils.mjs
index 0727950df..218a96f27 100644
--- a/ext/node/polyfills/internal/readline/utils.mjs
+++ b/ext/node/polyfills/internal/readline/utils.mjs
@@ -20,6 +20,9 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+// TODO(petamoriken): enable prefer-primordials for node polyfills
+// deno-lint-ignore-file prefer-primordials
+
"use strict";
const kUTF16SurrogateThreshold = 0x10000; // 2 ** 16