We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3225942 commit f40b906Copy full SHA for f40b906
test/addons/not-a-binding/binding.gyp
@@ -0,0 +1,8 @@
1
+{
2
+ 'targets': [
3
+ {
4
+ 'target_name': 'binding',
5
+ 'sources': [ 'not_a_binding.c' ]
6
+ }
7
+ ]
8
+}
test/addons/not-a-binding/not_a_binding.c
@@ -0,0 +1,3 @@
+int foo(void) {
+ return 0;
test/addons/not-a-binding/test.js
@@ -0,0 +1,6 @@
+'use strict';
+const common = require('../../common');
+const assert = require('assert');
+
+const re = /^Error: Module did not self-register\.$/;
+assert.throws(() => require(`./build/${common.buildType}/binding`), re);
0 commit comments