| 641 | * Options for `construct.addMetadata()`. |
| 642 | */ |
| 643 | export interface MetadataOptions { |
| 644 | /** |
| 645 | * Include stack trace with metadata entry. |
| 646 | * @default false |
| 647 | */ |
| 648 | readonly stackTrace?: boolean; |
| 649 | |
| 650 | /** |
| 651 | * A JavaScript function to begin tracing from. |
| 652 | * |
| 653 | * This option is ignored unless `stackTrace` is `true`. |
| 654 | * |
| 655 | * @default addMetadata() |
| 656 | */ |
| 657 | readonly traceFromFunction?: any; |
| 658 | |
| 659 | /** |
| 660 | * The actual stack trace to be added to the metadata. If this |
| 661 | * parameter is passed, the stackTrace parameter is ignored. |
| 662 | */ |
| 663 | readonly stackTraceOverride?: string[]; |
| 664 | } |
| 665 | |
| 666 | // Mark all instances of 'Construct' |
| 667 | Object.defineProperty(Construct.prototype, CONSTRUCT_SYM, { |
nothing calls this directly
no outgoing calls
no test coverage detected