Interpreter and node API: some refactoring towards being able to set properties from JS

This commit is contained in:
Olivier Goffart 2020-06-03 15:41:49 +02:00
parent fd829fc89f
commit 30d61452ba
6 changed files with 85 additions and 13 deletions

View file

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