File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,8 @@ dop.util.pathRecursive = function(
4545 ( tof_value == 'object' || tof_value == 'array' ) &&
4646 skip !== true &&
4747 value !== source &&
48- circular . indexOf ( value ) == - 1 &&
49- // ((has_destiny && destiny[prop] !== undefined) ||
50- source [ prop ] !== undefined
48+ circular . indexOf ( value ) == - 1
49+ // (has_destiny && destiny[prop] !== undefined) ||
5150 ) {
5251 circular . push ( value )
5352 dop . util . pathRecursive (
Original file line number Diff line number Diff line change 11const test = require ( 'tape' )
2- const { connect } = require ( '../ES6 /.connect.js' )
2+ const { connect } = require ( '../protocol /.connect.js' )
33
44const localFunctions = {
55 okSync : function ( req ) {
Original file line number Diff line number Diff line change 11const test = require ( 'tape' )
22const dop = require ( '../.proxy' )
3- const { connect } = require ( '../ES6 /.connect.js' )
3+ const { connect } = require ( '../protocol /.connect.js' )
44
55test ( 'basic' , async t => {
66 const { dopServer, nodeClient, close } = await connect ( t )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const transportListen = require('dop-transports').listen[transportName]
44const transportConnect = require ( 'dop-transports' ) . connect [ transportName ]
55
66function connect ( t , end = true ) {
7- return new Promise ( ( response , reject ) => {
7+ return new Promise ( function ( response , reject ) {
88 const dopServer = dop . create ( )
99 const dopClient = dop . create ( )
1010 dopServer . env = 'SERVER'
@@ -13,8 +13,8 @@ function connect(t, end = true) {
1313 const transportClient = dopClient . connect ( {
1414 transport : transportConnect
1515 } )
16- transportClient . on ( 'connect' , async nodeClient => {
17- const close = ( ) => {
16+ transportClient . on ( 'connect' , function ( nodeClient ) {
17+ const close = function ( ) {
1818 nodeClient . disconnect ( )
1919 transportServer . socket . close ( )
2020 if ( end ) t . end ( )
You can’t perform that action at this time.
0 commit comments