[Javascript] Using dll (dynamic library) in javascript / Javascript 使用动态库

How could I link dll in javascript? In the scripting manual, it says the javascript is implemented by Duktape. And I check the official documentation of Duktape, there is a way to create dll library, and link it to javascript by function “require()”. However, the function is undefined when I try to call it. So I just want to ask how to use functions from dll by javascript. Is it ban by developers?