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