fix warning

This commit is contained in:
Ben 2020-09-27 19:05:27 -07:00
parent 2571735fcd
commit ae8f76a0c0
3 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,7 @@
const stream = require('stream'); const stream = require('stream');
const EventEmitter = require('events').EventEmitter; const EventEmitter = require('events').EventEmitter;
// let lib = require('bindings')('vcd.node'); // let lib = require('bindings')('vcd.node');
const util = require('util'); // const util = require('util');
module.exports = async () => { module.exports = async () => {

View File

@ -3,7 +3,7 @@
const dotProp = require('dot-prop'); const dotProp = require('dot-prop');
function _waitForStart(mod) { function _waitForStart(mod) {
return new Promise((resolve, reject)=>{ return new Promise((resolve)=>{
mod.addOnPostRun(resolve); mod.addOnPostRun(resolve);
}); });
} }

View File

@ -21,7 +21,6 @@ describe('dump', () => {
['"}G', '{u', 'u)'] // array of all signal ids ['"}G', '{u', 'u)'] // array of all signal ids
.map(id => .map(id =>
inst.change.on(id, (time, cmd, value, mask) => { inst.change.on(id, (time, cmd, value, mask) => {
console.log(time, cmd, value, mask);
dump.push({ dump.push({
id, id,
time, time,
@ -82,7 +81,11 @@ $timescale 1ns $end
0"}G 0"}G
#200 #200
1"}G 1"}G
bzzzzxxxx11110000ZZZZXXXX11110000zzzzxxxx11110000zzzzxxxx11110000 {u bzzzzxxxx11110000ZZZZXXXX11110000zzzzxxx`);
// break in the middle of the number scan
inst.write( `x11110000zzzzxxxx11110000 {u
#300 #300
0"}G 0"}G
b1111000000000000000000000000000000000000000000000000000000000000 {u b1111000000000000000000000000000000000000000000000000000000000000 {u