summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/repl.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-12 01:25:46 +0100
committerGitHub <noreply@github.com>2024-09-12 02:25:46 +0200
commit3a3837545ce6f585f718069cc05d96f765a05d3f (patch)
tree4b5df24473636a405f096b2b26aa32983440c2f4 /ext/node/polyfills/repl.ts
parent3f6605d123ea5c07c7e0bdb7fd5b06676aa8c8e0 (diff)
feat(ext/node): export missing symbols from domain, puncode, repl, tls (#25585)
Diffstat (limited to 'ext/node/polyfills/repl.ts')
-rw-r--r--ext/node/polyfills/repl.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/node/polyfills/repl.ts b/ext/node/polyfills/repl.ts
index 70fe52ce4..a7acc5b19 100644
--- a/ext/node/polyfills/repl.ts
+++ b/ext/node/polyfills/repl.ts
@@ -1,7 +1,12 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
+import { primordials } from "ext:core/mod.js";
import { notImplemented } from "ext:deno_node/_utils.ts";
+const { Symbol } = primordials;
+
+export const REPL_MODE_SLOPPY = Symbol("repl-sloppy");
+export const REPL_MODE_STRICT = Symbol("repl-strict");
export class REPLServer {
constructor() {
@@ -61,4 +66,6 @@ export default {
builtinModules,
_builtinLibs,
start,
+ REPL_MODE_SLOPPY,
+ REPL_MODE_STRICT,
};