diff options
author | James M Snell <jasnell@gmail.com> | 2018-07-30 01:34:51 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-08-09 07:30:58 -0700 |
commit | 9f5cc1fc92918c387ec007944b5a53566b428adb (patch) | |
tree | 7ff22466b182f20bd9d2981f25435d43b85ff91a /test | |
parent | 4253e5583bf4b50ef0b3b2776581d8ca8d8bcd1d (diff) | |
download | android-node-v8-9f5cc1fc92918c387ec007944b5a53566b428adb.tar.gz android-node-v8-9f5cc1fc92918c387ec007944b5a53566b428adb.tar.bz2 android-node-v8-9f5cc1fc92918c387ec007944b5a53566b428adb.zip |
src: move process.binding('performance') to internalBinding
PR-URL: https://github.com/nodejs/node/pull/22029
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-internal-module-wrap.js | 3 | ||||
-rw-r--r-- | test/parallel/test-performance-gc.js | 5 | ||||
-rw-r--r-- | test/parallel/test-performanceobserver.js | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/parallel/test-internal-module-wrap.js b/test/parallel/test-internal-module-wrap.js index 99f1e9d6e7..a1461e34b0 100644 --- a/test/parallel/test-internal-module-wrap.js +++ b/test/parallel/test-internal-module-wrap.js @@ -5,7 +5,8 @@ require('../common'); const assert = require('assert'); -const { ModuleWrap } = require('internal/test/binding'); +const { internalBinding } = require('internal/test/binding'); +const { ModuleWrap } = internalBinding('module_wrap'); const { getPromiseDetails, isPromise } = process.binding('util'); const setTimeoutAsync = require('util').promisify(setTimeout); diff --git a/test/parallel/test-performance-gc.js b/test/parallel/test-performance-gc.js index f4ff88a637..d071cddbcf 100644 --- a/test/parallel/test-performance-gc.js +++ b/test/parallel/test-performance-gc.js @@ -4,7 +4,8 @@ const common = require('../common'); const assert = require('assert'); const { - PerformanceObserver + PerformanceObserver, + constants } = require('perf_hooks'); const { @@ -12,7 +13,7 @@ const { NODE_PERFORMANCE_GC_MINOR, NODE_PERFORMANCE_GC_INCREMENTAL, NODE_PERFORMANCE_GC_WEAKCB -} = process.binding('performance').constants; +} = constants; const kinds = [ NODE_PERFORMANCE_GC_MAJOR, diff --git a/test/parallel/test-performanceobserver.js b/test/parallel/test-performanceobserver.js index 5d6029fc0d..06c1281666 100644 --- a/test/parallel/test-performanceobserver.js +++ b/test/parallel/test-performanceobserver.js @@ -1,11 +1,13 @@ +// Flags: --expose-internals 'use strict'; const common = require('../common'); const Countdown = require('../common/countdown'); const assert = require('assert'); +const { internalBinding } = require('internal/test/binding'); const { observerCounts: counts -} = process.binding('performance'); +} = internalBinding('performance'); const { performance, PerformanceObserver, |