Prechádzať zdrojové kódy

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

sunag 5 mesiacov pred
rodič
commit
960880c75c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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号