diff options
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() { |