GeezerVison is showing github.com — deps: V8: cherry-pick 3dd9576ce336 · nodejs/node@d87a810
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: common.gypi +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
36 | 36 |
|
37 | 37 | # Reset this number to 0 on major V8 upgrades. |
38 | 38 | # Increment by one for each non-official patch applied to deps/v8. |
39 | | - 'v8_embedder_string': '-node.32', |
| 39 | + 'v8_embedder_string': '-node.33', |
40 | 40 |
|
41 | 41 | ##### V8 defaults for Node.js ##### |
42 | 42 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: deps/v8/src/inspector/value-mirror.cc +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -656,6 +656,18 @@ class SymbolMirror final : public ValueMirror { |
656 | 656 | .build(); |
657 | 657 | } |
658 | 658 |
|
| 659 | + void buildEntryPreview( |
| 660 | + v8::Local<v8::Context> context, int* nameLimit, int* indexLimit, |
| 661 | + std::unique_ptr<ObjectPreview>* preview) const override { |
| 662 | + *preview = |
| 663 | + ObjectPreview::create() |
| 664 | + .setType(RemoteObject::TypeEnum::Symbol) |
| 665 | + .setDescription(descriptionForSymbol(context, m_symbol)) |
| 666 | + .setOverflow(false) |
| 667 | + .setProperties(std::make_unique<protocol::Array<PropertyPreview>>()) |
| 668 | + .build(); |
| 669 | + } |
| 670 | + |
659 | 671 | v8::Local<v8::Value> v8Value() const override { return m_symbol; } |
660 | 672 |
|
661 | 673 | protocol::Response buildWebDriverValue( |
|
Collapse file
Copy file name to clipboardExpand all lines: deps/v8/test/inspector/debugger/object-preview-internal-properties-expected.txt +82Lines changed: 82 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -159,6 +159,88 @@ expression: new WeakSet([{}]) |
159 | 159 | ] |
160 | 160 |
|
161 | 161 |
|
| 162 | +Running test: symbolsAsKeysInEntries |
| 163 | +expression: new Map([[Symbol('key1'), 1]]) |
| 164 | +{ |
| 165 | + name : size |
| 166 | + type : number |
| 167 | + value : 1 |
| 168 | +} |
| 169 | +[[Entries]]: |
| 170 | +[ |
| 171 | + [0] : { |
| 172 | + key : { |
| 173 | + description : Symbol(key1) |
| 174 | + overflow : false |
| 175 | + properties : [ |
| 176 | + ] |
| 177 | + type : symbol |
| 178 | + } |
| 179 | + value : { |
| 180 | + description : 1 |
| 181 | + overflow : false |
| 182 | + properties : [ |
| 183 | + ] |
| 184 | + type : number |
| 185 | + } |
| 186 | + } |
| 187 | +] |
| 188 | + |
| 189 | +expression: new Set([Symbol('key2')]) |
| 190 | +{ |
| 191 | + name : size |
| 192 | + type : number |
| 193 | + value : 1 |
| 194 | +} |
| 195 | +[[Entries]]: |
| 196 | +[ |
| 197 | + [0] : { |
| 198 | + value : { |
| 199 | + description : Symbol(key2) |
| 200 | + overflow : false |
| 201 | + properties : [ |
| 202 | + ] |
| 203 | + type : symbol |
| 204 | + } |
| 205 | + } |
| 206 | +] |
| 207 | + |
| 208 | +expression: new WeakMap([[Symbol('key3'), 2]]) |
| 209 | +[[Entries]]: |
| 210 | +[ |
| 211 | + [0] : { |
| 212 | + key : { |
| 213 | + description : Symbol(key3) |
| 214 | + overflow : false |
| 215 | + properties : [ |
| 216 | + ] |
| 217 | + type : symbol |
| 218 | + } |
| 219 | + value : { |
| 220 | + description : 2 |
| 221 | + overflow : false |
| 222 | + properties : [ |
| 223 | + ] |
| 224 | + type : number |
| 225 | + } |
| 226 | + } |
| 227 | +] |
| 228 | + |
| 229 | +expression: new WeakSet([Symbol('key4')]) |
| 230 | +[[Entries]]: |
| 231 | +[ |
| 232 | + [0] : { |
| 233 | + value : { |
| 234 | + description : Symbol(key4) |
| 235 | + overflow : false |
| 236 | + properties : [ |
| 237 | + ] |
| 238 | + type : symbol |
| 239 | + } |
| 240 | + } |
| 241 | +] |
| 242 | + |
| 243 | + |
162 | 244 | Running test: iteratorObject |
163 | 245 | expression: (new Map([[1,2]])).entries() |
164 | 246 | [[Entries]]: |
|
Collapse file
Copy file name to clipboardExpand all lines: deps/v8/test/inspector/debugger/object-preview-internal-properties.js +10-1Lines changed: 10 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | 3 | // found in the LICENSE file. |
4 | 4 | // |
5 | | -// Flags: --harmony-class-fields |
| 5 | +// Flags: --harmony-symbol-as-weakmap-key |
6 | 6 |
|
7 | 7 | let {session, contextGroup, Protocol} = InspectorTest.start("Check internal properties reported in object preview."); |
8 | 8 |
|
@@ -45,6 +45,15 @@ InspectorTest.runTestSuite([ |
45 | 45 | .then(next); |
46 | 46 | }, |
47 | 47 |
|
| 48 | + function symbolsAsKeysInEntries(next) |
| 49 | + { |
| 50 | + checkExpression("new Map([[Symbol('key1'), 1]])") |
| 51 | + .then(() => checkExpression("new Set([Symbol('key2')])")) |
| 52 | + .then(() => checkExpression("new WeakMap([[Symbol('key3'), 2]])")) |
| 53 | + .then(() => checkExpression("new WeakSet([Symbol('key4')])")) |
| 54 | + .then(next); |
| 55 | + }, |
| 56 | + |
48 | 57 | function iteratorObject(next) |
49 | 58 | { |
50 | 59 | checkExpression("(new Map([[1,2]])).entries()") |
|