Procházet zdrojové kódy

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

sunag před 9 měsíci
rodič
revize
960880c75c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.
  * @param {?Function} [callback=null] - Optional callback function to handle the debug output.
  * @returns {DebugNode}
  * @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 );
 addMethodChaining( 'debug', debug );

粤ICP备19079148号