diff options
author | Masashi Hirano <cherrydog07@gmail.com> | 2018-08-23 23:29:40 +0900 |
---|---|---|
committer | Masashi Hirano <cherrydog07@gmail.com> | 2018-11-16 21:56:29 +0900 |
commit | 1e23e3ceb3217f2b0e076864fdbbe874a8603e2f (patch) | |
tree | 94d2feb16ce55cbfcef65da6ce16e9598cc04e4c /test/parallel/test-assert.js | |
parent | 9bce68663b53dea4365445f4dfb3541a92bac1fe (diff) | |
download | android-node-v8-1e23e3ceb3217f2b0e076864fdbbe874a8603e2f.tar.gz android-node-v8-1e23e3ceb3217f2b0e076864fdbbe874a8603e2f.tar.bz2 android-node-v8-1e23e3ceb3217f2b0e076864fdbbe874a8603e2f.zip |
fs: make process.binding('fs') internal
Refs: https://github.com/nodejs/node/issues/22160
PR-URL: https://github.com/nodejs/node/pull/22478
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'test/parallel/test-assert.js')
-rw-r--r-- | test/parallel/test-assert.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index 695d890f4c..9028d9ae30 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.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 @@ -26,6 +27,7 @@ const common = require('../common'); const assert = require('assert'); const { inspect } = require('util'); +const { internalBinding } = require('internal/test/binding'); const a = assert; // Disable colored output to prevent color codes from breaking assertion @@ -658,7 +660,7 @@ common.expectsError( { // Test caching. - const fs = process.binding('fs'); + const fs = internalBinding('fs'); const tmp = fs.close; fs.close = common.mustCall(tmp, 1); function throwErr() { |