Node: Allow to init properties to value

This commit is contained in:
Olivier Goffart 2020-06-03 16:42:16 +02:00
parent 30d61452ba
commit 5ee09398e8
5 changed files with 58 additions and 8 deletions

View file

@ -3,10 +3,9 @@ native = require('../native/index.node');
require.extensions['.60'] = function (module, filename) {
var c = native.load(filename);
module.exports["show"] = function () {
c.create().show();
module.exports[c.name()] = function (init_properties) {
return c.create(init_properties);
}
}
module.exports = native;