Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/javascript/null_pointer_runme.js
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

10 lines
262 B
JavaScript

var null_pointer = require("null_pointer");
if (!null_pointer.func(null)) {
throw new Error("Javascript 'null' should be converted into NULL.");
}
if (null_pointer.getnull() != null) {
throw new Error("NULL should be converted into Javascript 'null'.");
}