The app:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Object.defineProperty(Error.prototype, "lineNumber", { | |
| configurable: true, | |
| enumerable: false, | |
| get: function () { | |
| if (!this.stack) return undefined; | |
| const match = this.stack.match(/:(\d+):\d+\)?$/m); | |
| return match ? Number(match[1]) : undefined; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parseTemplate(str) { | |
| let depth = 0; | |
| let cur = ''; | |
| const arr = []; | |
| for (let i = 0; i < str.length; i ++) { | |
| if (str[i] + str[i + 1] === '${') { | |
| if (depth === 0) { | |
| arr.push(cur); | |
| cur = "$"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hash = "81dc9bdb52d04dc20036dbd8313ed055" | |
| characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890" | |
| len = characters.len | |
| check = "" | |
| vals = 12.newVector() | |
| est_time = 0 | |
| total = 0 | |
| max = 1 | |
| start_local = timestamp | |
| out = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| log "hello world" |
