Explorar el Código

TSL: Add `debug()` for the stack when running outside the code flow (#31486)

sunag hace 10 meses
padre
commit
960880c75c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/nodes/utils/DebugNode.js

+ 1 - 1
src/nodes/utils/DebugNode.js

@@ -77,6 +77,6 @@ export default DebugNode;
  * @param {?Function} [callback=null] - Optional callback function to handle the debug output.
  * @returns {DebugNode}
  */
-export const debug = ( node, callback = null ) => nodeObject( new DebugNode( nodeObject( node ), callback ) );
+export const debug = ( node, callback = null ) => nodeObject( new DebugNode( nodeObject( node ), callback ) ).toStack();
 
 addMethodChaining( 'debug', debug );

粤ICP备19079148号