diff options
author | cjihrig <cjihrig@gmail.com> | 2018-08-23 11:04:19 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-08-27 17:49:01 -0400 |
commit | 56cf05887841e593240e5b8c4b1d59116234994b (patch) | |
tree | 326046463b251764c680edaedf97f91c1d578f4c /test | |
parent | 68dff4a67b7222770f90fc5d9bdd884f8db4a24b (diff) | |
download | android-node-v8-56cf05887841e593240e5b8c4b1d59116234994b.tar.gz android-node-v8-56cf05887841e593240e5b8c4b1d59116234994b.tar.bz2 android-node-v8-56cf05887841e593240e5b8c4b1d59116234994b.zip |
child_process: make process_wrap binding internal
PR-URL: https://github.com/nodejs/node/pull/22479
Refs: https://github.com/nodejs/node/issues/22160
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-process-wrap.js | 4 | ||||
-rw-r--r-- | test/sequential/test-async-wrap-getasyncid.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/parallel/test-process-wrap.js b/test/parallel/test-process-wrap.js index b3cca47c46..5c91384453 100644 --- a/test/parallel/test-process-wrap.js +++ b/test/parallel/test-process-wrap.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,7 +23,8 @@ 'use strict'; require('../common'); const assert = require('assert'); -const Process = process.binding('process_wrap').Process; +const { internalBinding } = require('internal/test/binding'); +const Process = internalBinding('process_wrap').Process; const { Pipe, constants: PipeConstants } = process.binding('pipe_wrap'); const pipe = new Pipe(PipeConstants.SOCKET); const p = new Process(); diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 18a6ed839e..65fe2015a0 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -182,7 +182,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check } { - const Process = process.binding('process_wrap').Process; + const Process = internalBinding('process_wrap').Process; testInitialized(new Process(), 'Process'); } |