From 24664c9dd4ca0c06388823f1a56874e04595bdcb Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 1 May 2016 00:48:48 +0200 Subject: [PATCH] repl: preload missing `constants` module The `constants` module was previously missing from the list of builtin modules which are available without requiring in the repl and using the `--eval` command line option. This patch adds it to that list. --- lib/internal/module.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/module.js b/lib/internal/module.js index a12af12f3e3d7e..4c6ebc666e1a11 100644 --- a/lib/internal/module.js +++ b/lib/internal/module.js @@ -52,9 +52,9 @@ function stripBOM(content) { } exports.builtinLibs = ['assert', 'buffer', 'child_process', 'cluster', - 'crypto', 'dgram', 'dns', 'domain', 'events', 'fs', 'http', 'https', 'net', - 'os', 'path', 'punycode', 'querystring', 'readline', 'repl', 'stream', - 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib']; + 'constants', 'crypto', 'dgram', 'dns', 'domain', 'events', 'fs', 'http', + 'https', 'net', 'os', 'path', 'punycode', 'querystring', 'readline', 'repl', + 'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib']; function addBuiltinLibsToObject(object) { // Make built-in modules available directly (loaded lazily).