🎨 Update addon example

This commit is contained in:
raub 2018-05-14 11:09:23 +03:00
parent 06e148c2d7
commit 0a8b92893b
2 changed files with 7 additions and 4 deletions

View File

@ -22,7 +22,9 @@
'msvs_settings' : {
'VCCLCompilerTool' : {
'AdditionalOptions' : [
'/O2','/Oy','/GL','/GF','/Gm-', '/Fm-',
'/O2','/Oy', # Comment this for debugging
# '/Z7', # Unomment this for debugging
'/GL','/GF','/Gm-', '/Fm-',
'/EHsc','/MT','/GS','/Gy','/GR-','/Gd',
]
},

View File

@ -2,13 +2,14 @@
const util = require('util');
const { binPath } = require('addon-tools-raub').paths(__dirname);
const core = require(`${binPath}/addon`);
const { binPath } = require('addon-tools-raub');
const core = require(`./${binPath}/addon`);
const { Example } = core;
Example.prototype[util.inspect.custom] = function() {
Example.prototype[util.inspect.custom] = function () {
return `Example { listeners: [${this.eventNames()}] }`;
};