node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Is there any way to remove type checking for the paramters

Open Sopur opened this issue 3 years ago • 0 comments

When compiling with no flags (Just "node-gyp build") it type checks the parameters. For example, putting in a string as a parameter returns an Error like

addon.New("String");
      ^

TypeError: A number was expected

How do I remove this functionality? I'm making a wrapper for a native library and I don't need the extra type checking.

Node Version: v18.1.0 and 8.5.5 Platform: Arch Linux Compiler: 12.1.0 (GCC)

Sopur avatar May 14 '22 19:05 Sopur