summaryrefslogtreecommitdiff
path: root/test/simple/test-process-binding.js
blob: c803a8083f22b49341f10695b09b1e1de3a247f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var assert = require('assert');

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

assert.doesNotThrow(function () {
  process.binding('buffer');
}, function(err) {
  if ( (err instanceof Error) ) {
    return true;
  }
}, "unexpected error");