| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6ad5353 commit 814fa1a
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,6 +73,7 @@ const { | |||
| 73 | 73 | ArrayPrototypeSort, | |
| 74 | 74 | ObjectPrototypeHasOwnProperty, | |
| 75 | 75 | StringPrototypeCharAt, | |
| 76 | + Symbol, | ||
| 76 | 77 | } = primordials; | |
| 77 | 78 | ||
| 78 | 79 | const { validateObject } = require('internal/validators'); | |
@@ -83,6 +84,8 @@ const VLQ_BASE_SHIFT = 5; | |||
| 83 | 84 | const VLQ_BASE_MASK = (1 << 5) - 1; | |
| 84 | 85 | const VLQ_CONTINUATION_MASK = 1 << 5; | |
| 85 | 86 | ||
| 87 | + const kMappings = Symbol('kMappings'); | ||
| 88 | + | ||
| 86 | 89 | class StringCharIterator { | |
| 87 | 90 | /** | |
| 88 | 91 | * @constructor | |
@@ -153,6 +156,10 @@ class SourceMap { | |||
| 153 | 156 | return cloneSourceMapV3(this.#payload); | |
| 154 | 157 | } | |
| 155 | 158 | ||
| 159 | + get [kMappings]() { | ||
| 160 | + return this.#mappings; | ||
| 161 | + } | ||
| 162 | + | ||
| 156 | 163 | /** | |
| 157 | 164 | * @return {number[] | undefined} line lengths of generated source code | |
| 158 | 165 | */ | |
@@ -382,5 +389,6 @@ function compareSourceMapEntry(entry1, entry2) { | |||
| 382 | 389 | } | |
| 383 | 390 | ||
| 384 | 391 | module.exports = { | |
| 392 | + kMappings, | ||
| 385 | 393 | SourceMap, | |
| 386 | 394 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments