File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,16 @@ var LibraryPThread = {
96
96
) {
97
97
t = _pthread_self ( ) ;
98
98
}
99
- return `w:${ workerID } ,t:${ ptrToString ( t ) } : ` ;
99
+ return `w:${ workerID } ,t:${ ptrToString ( t ) } :` ;
100
100
}
101
101
102
102
// Prefix all err()/dbg() messages with the calling thread ID.
103
103
var origDbg = dbg ;
104
- dbg = ( ...args ) => origDbg ( pthreadLogPrefix ( ) + args . join ( ' ' ) ) ;
104
+ dbg = ( ...args ) => origDbg ( pthreadLogPrefix ( ) , ... args ) ;
105
105
#if PTHREADS_DEBUG
106
106
// With PTHREADS_DEBUG also prefix all err() messages.
107
107
var origErr = err ;
108
- err = ( ...args ) => origErr ( pthreadLogPrefix ( ) + args . join ( ' ' ) ) ;
108
+ err = ( ...args ) => origErr ( pthreadLogPrefix ( ) , ... args ) ;
109
109
#endif
110
110
} ,
111
111
#endif
Original file line number Diff line number Diff line change @@ -14982,12 +14982,12 @@ def test_itimer_proxy_to_pthread(self):
14982
14982
@node_pthreads
14983
14983
def test_dbg(self):
14984
14984
create_file('pre.js', '''
14985
- dbg('start');
14986
- Module.onRuntimeInitialized = () => dbg('done init');
14985
+ dbg('start', { foo: 1} );
14986
+ Module.onRuntimeInitialized = () => dbg('done init', { bar: 1} );
14987
14987
''')
14988
14988
expected = '''\
14989
- start
14990
- w:0,t:0x[0-9a-fA-F]+: done init
14989
+ start { foo: 1 }
14990
+ w:0,t:0x[0-9a-fA-F]+: done init { bar: 1 }
14991
14991
hello, world!
14992
14992
w:0,t:0x[0-9a-fA-F]+: native dbg message
14993
14993
w:0,t:0x[0-9a-fA-F]+: hello
You can’t perform that action at this time.
0 commit comments