summaryrefslogtreecommitdiff
path: root/test/parallel/test-process-binding.js
blob: 05bb0e6aa07d4176d1127c16d75bc414ffe1e43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';
// Flags: --expose-internals
require('../common');
const assert = require('assert');
const { internalBinding } = require('internal/test/binding');

assert.throws(
  function() {
    process.binding('test');
  },
  /No such module: test/
);

internalBinding('buffer');