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