diff options
author | cjihrig <cjihrig@gmail.com> | 2018-09-03 11:16:48 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-09-05 21:53:11 -0400 |
commit | 7e4b0a4850a5c7d9e14824db20f818db947305d3 (patch) | |
tree | 881b344d32d89908583355d71b54703d72f7c77e /test/parallel/test-util-inspect.js | |
parent | 04195adaa953e339d71dff7ae59d5261a0294895 (diff) | |
download | android-node-v8-7e4b0a4850a5c7d9e14824db20f818db947305d3.tar.gz android-node-v8-7e4b0a4850a5c7d9e14824db20f818db947305d3.tar.bz2 android-node-v8-7e4b0a4850a5c7d9e14824db20f818db947305d3.zip |
util: make util binding internal
Refs: https://github.com/nodejs/node/issues/22160
PR-URL: https://github.com/nodejs/node/pull/22675
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/parallel/test-util-inspect.js')
-rw-r--r-- | test/parallel/test-util-inspect.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 8e78430c01..b5ccdf019a 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -1,3 +1,4 @@ +// Flags: --expose-internals // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a @@ -22,10 +23,11 @@ 'use strict'; const common = require('../common'); const assert = require('assert'); +const { internalBinding } = require('internal/test/binding'); const JSStream = process.binding('js_stream').JSStream; const util = require('util'); const vm = require('vm'); -const { previewEntries } = process.binding('util'); +const { previewEntries } = internalBinding('util'); const { inspect } = util; assert.strictEqual(util.inspect(1), '1'); |