summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/inspector/runtime')
-rw-r--r--deps/v8/test/inspector/runtime/add-binding-expected.txt44
-rw-r--r--deps/v8/test/inspector/runtime/add-binding.js42
-rw-r--r--deps/v8/test/inspector/runtime/clear-of-command-line-api.js2
-rw-r--r--deps/v8/test/inspector/runtime/command-line-api-expected.txt24
-rw-r--r--deps/v8/test/inspector/runtime/get-properties-expected.txt55
-rw-r--r--deps/v8/test/inspector/runtime/get-properties.js6
-rw-r--r--deps/v8/test/inspector/runtime/internal-properties-expected.txt201
-rw-r--r--deps/v8/test/inspector/runtime/remote-object-expected.txt24
-rw-r--r--deps/v8/test/inspector/runtime/remote-object-get-properties-expected.txt44
-rw-r--r--deps/v8/test/inspector/runtime/remote-object.js8
10 files changed, 365 insertions, 85 deletions
diff --git a/deps/v8/test/inspector/runtime/add-binding-expected.txt b/deps/v8/test/inspector/runtime/add-binding-expected.txt
index 38ecb05825..ff876782ab 100644
--- a/deps/v8/test/inspector/runtime/add-binding-expected.txt
+++ b/deps/v8/test/inspector/runtime/add-binding-expected.txt
@@ -157,6 +157,50 @@ binding called in session1
}
Call binding in newly created context (binding should NOT be exposed)
+Running test: testAddBindingToMultipleContextsById
+Call binding in default context (binding should be exposed)
+binding called in session1
+{
+ method : Runtime.bindingCalled
+ params : {
+ executionContextId : <executionContextId>
+ name : frobnicate
+ payload : message
+ }
+}
+Call binding in target context (binding should be exposed)
+binding called in session1
+{
+ method : Runtime.bindingCalled
+ params : {
+ executionContextId : <executionContextId>
+ name : frobnicate
+ payload : message
+ }
+}
+
+Running test: testAddBindingToMultipleContextsInDifferentContextGroups
+Call binding in default context (binding should be exposed)
+binding called in group1/session1
+{
+ method : Runtime.bindingCalled
+ params : {
+ executionContextId : <executionContextId>
+ name : frobnicate
+ payload : message
+ }
+}
+Call binding in target context (binding should be exposed)
+binding called in group2/session1
+{
+ method : Runtime.bindingCalled
+ params : {
+ executionContextId : <executionContextId>
+ name : frobnicate
+ payload : message
+ }
+}
+
Running test: testAddBindingToContextByName
Call binding in default context (binding should NOT be exposed)
Call binding in Foo (binding should be exposed)
diff --git a/deps/v8/test/inspector/runtime/add-binding.js b/deps/v8/test/inspector/runtime/add-binding.js
index 95f4549d4f..a44a9bcf35 100644
--- a/deps/v8/test/inspector/runtime/add-binding.js
+++ b/deps/v8/test/inspector/runtime/add-binding.js
@@ -87,6 +87,44 @@ InspectorTest.runAsyncTestSuite([
await session.Protocol.Runtime.evaluate({expression, contextId: contextId3});
},
+ async function testAddBindingToMultipleContextsById() {
+ const {contextGroup, sessions: [session]} = setupSessions(1);
+ const contextId1 = (await session.Protocol.Runtime.onceExecutionContextCreated()).params.context.id;
+
+ contextGroup.createContext();
+ const contextId2 = (await session.Protocol.Runtime.onceExecutionContextCreated()).params.context.id;
+
+ await session.Protocol.Runtime.addBinding({name: 'frobnicate', executionContextId: contextId1});
+ await session.Protocol.Runtime.addBinding({name: 'frobnicate', executionContextId: contextId2});
+ const expression = `frobnicate('message')`;
+
+ InspectorTest.log('Call binding in default context (binding should be exposed)');
+ await session.Protocol.Runtime.evaluate({expression});
+
+ InspectorTest.log('Call binding in target context (binding should be exposed)');
+ await session.Protocol.Runtime.evaluate({expression, contextId: contextId2});
+ },
+
+ async function testAddBindingToMultipleContextsInDifferentContextGroups() {
+ const sessions1 = setupSessions(1, 'group1/');
+ const session1 = sessions1.sessions[0];
+ const contextId1 = (await session1.Protocol.Runtime.onceExecutionContextCreated()).params.context.id;
+
+ const sessions2 = setupSessions(1, 'group2/');
+ const session2 = sessions2.sessions[0];
+ const contextId2 = (await session2.Protocol.Runtime.onceExecutionContextCreated()).params.context.id;
+
+ await session1.Protocol.Runtime.addBinding({name: 'frobnicate', executionContextId: contextId1});
+ await session2.Protocol.Runtime.addBinding({name: 'frobnicate', executionContextId: contextId2});
+ const expression = `frobnicate('message')`;
+
+ InspectorTest.log('Call binding in default context (binding should be exposed)');
+ await session1.Protocol.Runtime.evaluate({expression, contextId: contextId1});
+
+ InspectorTest.log('Call binding in target context (binding should be exposed)');
+ await session2.Protocol.Runtime.evaluate({expression, contextId: contextId2});
+ },
+
async function testAddBindingToContextByName() {
const {contextGroup, sessions: [session]} = setupSessions(1);
const defaultContext = (await session.Protocol.Runtime.onceExecutionContextCreated()).params.context.id;
@@ -134,7 +172,7 @@ InspectorTest.runAsyncTestSuite([
]);
-function setupSessions(num) {
+function setupSessions(num, prefix = '') {
const contextGroup = new InspectorTest.ContextGroup();
const sessions = [];
for (let i = 0; i < num; ++i) {
@@ -142,7 +180,7 @@ function setupSessions(num) {
sessions.push(session);
session.Protocol.Runtime.enable();
session.Protocol.Runtime.onBindingCalled(msg => {
- InspectorTest.log(`binding called in session${i + 1}`);
+ InspectorTest.log(`binding called in ${prefix}session${i + 1}`);
InspectorTest.logMessage(msg);
});
}
diff --git a/deps/v8/test/inspector/runtime/clear-of-command-line-api.js b/deps/v8/test/inspector/runtime/clear-of-command-line-api.js
index d67a1c5447..13a8d19154 100644
--- a/deps/v8/test/inspector/runtime/clear-of-command-line-api.js
+++ b/deps/v8/test/inspector/runtime/clear-of-command-line-api.js
@@ -13,7 +13,7 @@ function presentedAPIMethods()
var methodCount = 0;
for (var method of methods) {
try {
- if (eval("window." + method + "&&" + method + ".toString ? " + method + ".toString().indexOf(\\"[Command Line API]\\") !== -1 : false"))
+ if (eval("window." + method + "&&" + method + ".toString ? " + method + ".toString().indexOf(\\"[native code]\\") !== -1 : false"))
++methodCount;
} catch (e) {
}
diff --git a/deps/v8/test/inspector/runtime/command-line-api-expected.txt b/deps/v8/test/inspector/runtime/command-line-api-expected.txt
index 38d53b7eb4..ba5f08d885 100644
--- a/deps/v8/test/inspector/runtime/command-line-api-expected.txt
+++ b/deps/v8/test/inspector/runtime/command-line-api-expected.txt
@@ -6,7 +6,7 @@ Running test: testKeys
result : {
result : {
className : Function
- description : function keys(object) { [Command Line API] }
+ description : function keys() { [native code] }
objectId : <objectId>
type : function
}
@@ -114,7 +114,7 @@ Running test: testQueryObjects
result : {
result : {
className : Function
- description : function queryObjects(constructor) { [Command Line API] }
+ description : function queryObjects() { [native code] }
objectId : <objectId>
type : function
}
@@ -235,7 +235,7 @@ Running test: testDebug
result : {
result : {
className : Function
- description : function debug(function, condition) { [Command Line API] }
+ description : function debug() { [native code] }
objectId : <objectId>
type : function
}
@@ -246,7 +246,7 @@ Running test: testDebug
result : {
result : {
className : Function
- description : function undebug(function) { [Command Line API] }
+ description : function undebug() { [native code] }
objectId : <objectId>
type : function
}
@@ -295,7 +295,7 @@ Running test: testMonitor
result : {
result : {
className : Function
- description : function monitor(function) { [Command Line API] }
+ description : function monitor() { [native code] }
objectId : <objectId>
type : function
}
@@ -306,7 +306,7 @@ Running test: testMonitor
result : {
result : {
className : Function
- description : function unmonitor(function) { [Command Line API] }
+ description : function unmonitor() { [native code] }
objectId : <objectId>
type : function
}
@@ -325,7 +325,7 @@ Running test: testProfile
result : {
result : {
className : Function
- description : function profile(title) { [Command Line API] }
+ description : function profile() { [native code] }
objectId : <objectId>
type : function
}
@@ -336,7 +336,7 @@ Running test: testProfile
result : {
result : {
className : Function
- description : function profileEnd(title) { [Command Line API] }
+ description : function profileEnd() { [native code] }
objectId : <objectId>
type : function
}
@@ -399,7 +399,7 @@ Running test: testDir
result : {
result : {
className : Function
- description : function dir(value) { [Command Line API] }
+ description : function dir() { [native code] }
objectId : <objectId>
type : function
}
@@ -506,7 +506,7 @@ Running test: testDirXML
result : {
result : {
className : Function
- description : function dirxml(value) { [Command Line API] }
+ description : function dirxml() { [native code] }
objectId : <objectId>
type : function
}
@@ -579,7 +579,7 @@ Running test: testTable
result : {
result : {
className : Function
- description : function table(data, [columns]) { [Command Line API] }
+ description : function table() { [native code] }
objectId : <objectId>
type : function
}
@@ -652,7 +652,7 @@ Running test: testClear
result : {
result : {
className : Function
- description : function clear() { [Command Line API] }
+ description : function clear() { [native code] }
objectId : <objectId>
type : function
}
diff --git a/deps/v8/test/inspector/runtime/get-properties-expected.txt b/deps/v8/test/inspector/runtime/get-properties-expected.txt
index ca23ac8b10..b67f470971 100644
--- a/deps/v8/test/inspector/runtime/get-properties-expected.txt
+++ b/deps/v8/test/inspector/runtime/get-properties-expected.txt
@@ -1,10 +1,10 @@
Checks Runtime.getProperties method
Running test: testObject5
- __proto__ own object undefined
foo own string cat
Internal properties
[[PrimitiveValue]] number 5
+ [[Prototype]] object undefined
Running test: testNotOwn
__defineGetter__ inherited function undefined
@@ -23,6 +23,8 @@ Running test: testNotOwn
toLocaleString inherited function undefined
toString inherited function undefined
valueOf inherited function undefined
+Internal properties
+ [[Prototype]] object undefined
Running test: testAccessorsOnly
b own no value, getter, setter
@@ -32,33 +34,38 @@ Running test: testArray
0 own string red
1 own string green
2 own string blue
- __proto__ own object undefined
length own number 3
+Internal properties
+ [[Prototype]] object undefined
Running test: testBound
- __proto__ own function undefined
length own number 0
name own string bound Number
Internal properties
[[BoundArgs]] object undefined
[[BoundThis]] object undefined
+ [[Prototype]] function undefined
[[TargetFunction]] function undefined
Running test: testObjectThrowsLength
- __proto__ own object undefined
length own no value, getter
+Internal properties
+ [[Prototype]] object undefined
Running test: testTypedArrayWithoutLength
- __proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
Running test: testClassWithPrivateFields
- __proto__ own object undefined
baz own number 4
+Internal properties
+ [[Prototype]] object undefined
Private properties
#bar number 3
#foo number 2
- __proto__ own object undefined
baz own number 4
+Internal properties
+ [[Prototype]] object undefined
Private properties
#bar number 3
#baz number 1
@@ -72,6 +79,13 @@ Private properties
#foo number 2
Running test: testArrayBuffer
+[[Prototype]]
+ Symbol(Symbol.toStringTag) own string ArrayBuffer
+ byteLength own no value, getter
+ constructor own function undefined
+ slice own function undefined
+Internal properties
+ [[Prototype]] object undefined
[[Int8Array]]
0 own number 1
1 own number 1
@@ -81,7 +95,8 @@ Running test: testArrayBuffer
5 own number 1
6 own number 1
7 own number 1
- __proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
[[Uint8Array]]
0 own number 1
1 own number 1
@@ -91,21 +106,31 @@ Running test: testArrayBuffer
5 own number 1
6 own number 1
7 own number 1
- __proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
[[Int16Array]]
0 own number 257
1 own number 257
2 own number 257
3 own number 257
- __proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
[[Int32Array]]
0 own number 16843009
1 own number 16843009
- __proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
[[ArrayBufferByteLength]]
[[ArrayBufferData]]
Running test: testArrayBufferFromWebAssemblyMemory
+[[Prototype]]
+ Symbol(Symbol.toStringTag) own string ArrayBuffer
+ byteLength own no value, getter
+ constructor own function undefined
+ slice own function undefined
+Internal properties
+ [[Prototype]] object undefined
[[Int8Array]]
[[Uint8Array]]
[[Int16Array]]
@@ -113,18 +138,22 @@ Running test: testArrayBufferFromWebAssemblyMemory
[[ArrayBufferByteLength]]
[[ArrayBufferData]]
[[WebAssemblyMemory]]
- __proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
Running test: testDetachedArrayBuffer
+[[Prototype]] undefined
[[IsDetached]] true
Running test: testArrayBufferWithBrokenUintCtor
- __proto__ own object undefined
Internal properties
[[ArrayBufferByteLength]] number 7
[[ArrayBufferData]] string 0x...
[[Int8Array]] object undefined
+ [[Prototype]] object undefined
[[Uint8Array]] object undefined
Running test: testObjectWithProtoProperty
__proto__ own object undefined
+Internal properties
+ [[Prototype]] object undefined
diff --git a/deps/v8/test/inspector/runtime/get-properties.js b/deps/v8/test/inspector/runtime/get-properties.js
index 1a8aa9e99a..69305e241d 100644
--- a/deps/v8/test/inspector/runtime/get-properties.js
+++ b/deps/v8/test/inspector/runtime/get-properties.js
@@ -45,8 +45,6 @@ InspectorTest.runAsyncTestSuite([
let objectId = await evaluateToObjectId('new Uint8Array([1, 1, 1, 1, 1, 1, 1, 1]).buffer');
let props = await Protocol.Runtime.getProperties({ objectId, ownProperties: true });
for (let prop of props.result.result) {
- if (prop.name === '__proto__')
- continue;
InspectorTest.log(prop.name);
await logGetPropertiesResult(prop.value.objectId);
}
@@ -61,8 +59,6 @@ InspectorTest.runAsyncTestSuite([
let objectId = await evaluateToObjectId('new WebAssembly.Memory({initial: 1}).buffer');
let props = await Protocol.Runtime.getProperties({ objectId, ownProperties: true });
for (let prop of props.result.result) {
- if (prop.name === '__proto__')
- continue;
InspectorTest.log(prop.name);
await logGetPropertiesResult(prop.value.objectId);
}
@@ -84,8 +80,6 @@ InspectorTest.runAsyncTestSuite([
await Protocol.Runtime.evaluate({ expression: 'b', generatePreview: true })
let props = await Protocol.Runtime.getProperties({ objectId, ownProperties: true });
for (let prop of props.result.result) {
- if (prop.name === '__proto__')
- continue;
InspectorTest.log(prop.name);
await logGetPropertiesResult(prop.value.objectId);
}
diff --git a/deps/v8/test/inspector/runtime/internal-properties-expected.txt b/deps/v8/test/inspector/runtime/internal-properties-expected.txt
index fc4de5bca3..0a35506f4d 100644
--- a/deps/v8/test/inspector/runtime/internal-properties-expected.txt
+++ b/deps/v8/test/inspector/runtime/internal-properties-expected.txt
@@ -27,6 +27,15 @@ expression: (function* foo() { yield 1 })
}
}
[2] : {
+ name : [[Prototype]]
+ value : {
+ className : GeneratorFunction
+ description : GeneratorFunction
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [3] : {
name : [[Scopes]]
value : {
className : Array
@@ -60,6 +69,15 @@ expression: (function foo() {})
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Function
+ description : function () { [native code] }
+ objectId : <objectId>
+ type : function
+ }
+ }
+ [2] : {
name : [[Scopes]]
value : {
className : Array
@@ -80,6 +98,15 @@ expression: new Number(239)
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Number
+ description : Number
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PrimitiveValue]]
value : {
description : 239
@@ -96,6 +123,15 @@ expression: new Boolean(false)
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Boolean
+ description : Boolean
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PrimitiveValue]]
value : {
type : boolean
@@ -111,6 +147,15 @@ expression: new String('abc')
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : String
+ description : String
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PrimitiveValue]]
value : {
type : string
@@ -126,6 +171,15 @@ expression: Object(Symbol(42))
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Symbol
+ description : Symbol
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PrimitiveValue]]
value : {
description : Symbol(42)
@@ -142,6 +196,15 @@ expression: Object(BigInt(2))
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : BigInt
+ description : BigInt
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PrimitiveValue]]
value : {
description : 2n
@@ -160,13 +223,22 @@ expression: Promise.resolve(42)
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Promise
+ description : Promise
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PromiseState]]
value : {
type : string
value : fulfilled
}
}
- [1] : {
+ [2] : {
name : [[PromiseResult]]
value : {
description : 42
@@ -183,13 +255,22 @@ expression: new Promise(() => undefined)
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Promise
+ description : Promise
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[PromiseState]]
value : {
type : string
value : pending
}
}
- [1] : {
+ [2] : {
name : [[PromiseResult]]
value : {
type : undefined
@@ -219,13 +300,22 @@ expression: gen1
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Generator
+ description : Generator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [2] : {
name : [[GeneratorState]]
value : {
type : string
value : suspended
}
}
- [2] : {
+ [3] : {
name : [[GeneratorFunction]]
value : {
className : GeneratorFunction
@@ -234,7 +324,7 @@ expression: gen1
type : function
}
}
- [3] : {
+ [4] : {
name : [[GeneratorReceiver]]
value : {
className : global
@@ -243,7 +333,7 @@ expression: gen1
type : object
}
}
- [4] : {
+ [5] : {
name : [[Scopes]]
value : {
className : Array
@@ -275,13 +365,22 @@ expression: gen1.next();gen1
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Generator
+ description : Generator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [2] : {
name : [[GeneratorState]]
value : {
type : string
value : suspended
}
}
- [2] : {
+ [3] : {
name : [[GeneratorFunction]]
value : {
className : GeneratorFunction
@@ -290,7 +389,7 @@ expression: gen1.next();gen1
type : function
}
}
- [3] : {
+ [4] : {
name : [[GeneratorReceiver]]
value : {
className : global
@@ -299,7 +398,7 @@ expression: gen1.next();gen1
type : object
}
}
- [4] : {
+ [5] : {
name : [[Scopes]]
value : {
className : Array
@@ -331,13 +430,22 @@ expression: gen1.next();gen1
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Generator
+ description : Generator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [2] : {
name : [[GeneratorState]]
value : {
type : string
value : closed
}
}
- [2] : {
+ [3] : {
name : [[GeneratorFunction]]
value : {
className : GeneratorFunction
@@ -346,7 +454,7 @@ expression: gen1.next();gen1
type : function
}
}
- [3] : {
+ [4] : {
name : [[GeneratorReceiver]]
value : {
className : global
@@ -379,13 +487,22 @@ expression: gen2
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Generator
+ description : Generator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [2] : {
name : [[GeneratorState]]
value : {
type : string
value : suspended
}
}
- [2] : {
+ [3] : {
name : [[GeneratorFunction]]
value : {
className : GeneratorFunction
@@ -394,7 +511,7 @@ expression: gen2
type : function
}
}
- [3] : {
+ [4] : {
name : [[GeneratorReceiver]]
value : {
className : global
@@ -403,7 +520,7 @@ expression: gen2
type : object
}
}
- [4] : {
+ [5] : {
name : [[Scopes]]
value : {
className : Array
@@ -435,13 +552,22 @@ expression: gen2.next();gen2
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Generator
+ description : Generator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [2] : {
name : [[GeneratorState]]
value : {
type : string
value : suspended
}
}
- [2] : {
+ [3] : {
name : [[GeneratorFunction]]
value : {
className : GeneratorFunction
@@ -450,7 +576,7 @@ expression: gen2.next();gen2
type : function
}
}
- [3] : {
+ [4] : {
name : [[GeneratorReceiver]]
value : {
className : global
@@ -459,7 +585,7 @@ expression: gen2.next();gen2
type : object
}
}
- [4] : {
+ [5] : {
name : [[Scopes]]
value : {
className : Array
@@ -491,13 +617,22 @@ expression: gen2.next();gen2
}
}
[1] : {
+ name : [[Prototype]]
+ value : {
+ className : Generator
+ description : Generator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [2] : {
name : [[GeneratorState]]
value : {
type : string
value : closed
}
}
- [2] : {
+ [3] : {
name : [[GeneratorFunction]]
value : {
className : GeneratorFunction
@@ -506,7 +641,7 @@ expression: gen2.next();gen2
type : function
}
}
- [3] : {
+ [4] : {
name : [[GeneratorReceiver]]
value : {
className : global
@@ -526,13 +661,22 @@ expression: (new Map([[1,2]])).entries()
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Map Iterator
+ description : Map Iterator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[IteratorHasMore]]
value : {
type : boolean
value : true
}
}
- [1] : {
+ [2] : {
name : [[IteratorIndex]]
value : {
description : 0
@@ -540,14 +684,14 @@ expression: (new Map([[1,2]])).entries()
value : 0
}
}
- [2] : {
+ [3] : {
name : [[IteratorKind]]
value : {
type : string
value : entries
}
}
- [3] : {
+ [4] : {
name : [[Entries]]
value : {
className : Array
@@ -566,13 +710,22 @@ expression: (new Set([[1,2]])).entries()
result : {
internalProperties : [
[0] : {
+ name : [[Prototype]]
+ value : {
+ className : Set Iterator
+ description : Set Iterator
+ objectId : <objectId>
+ type : object
+ }
+ }
+ [1] : {
name : [[IteratorHasMore]]
value : {
type : boolean
value : true
}
}
- [1] : {
+ [2] : {
name : [[IteratorIndex]]
value : {
description : 0
@@ -580,14 +733,14 @@ expression: (new Set([[1,2]])).entries()
value : 0
}
}
- [2] : {
+ [3] : {
name : [[IteratorKind]]
value : {
type : string
value : entries
}
}
- [3] : {
+ [4] : {
name : [[Entries]]
value : {
className : Array
diff --git a/deps/v8/test/inspector/runtime/remote-object-expected.txt b/deps/v8/test/inspector/runtime/remote-object-expected.txt
index f4d98a9cca..82e6ed8bf8 100644
--- a/deps/v8/test/inspector/runtime/remote-object-expected.txt
+++ b/deps/v8/test/inspector/runtime/remote-object-expected.txt
@@ -397,6 +397,16 @@ Running test: testBigInt
}
Running test: testRegExp
+'/w+/d', returnByValue: false, generatePreview: false
+{
+ result : {
+ className : RegExp
+ description : /w+/d
+ objectId : <objectId>
+ subtype : regexp
+ type : object
+ }
+}
'/w+/g', returnByValue: false, generatePreview: false
{
result : {
@@ -457,11 +467,11 @@ Running test: testRegExp
type : object
}
}
-'/w+/gimsuy', returnByValue: false, generatePreview: false
+'/w+/dgimsuy', returnByValue: false, generatePreview: false
{
result : {
className : RegExp
- description : /w+/gimsuy
+ description : /w+/dgimsuy
objectId : <objectId>
subtype : regexp
type : object
@@ -477,6 +487,16 @@ Running test: testRegExp
type : object
}
}
+'new RegExp('foo/bar')', returnByValue: false, generatePreview: false
+{
+ result : {
+ className : RegExp
+ description : /foo\/bar/
+ objectId : <objectId>
+ subtype : regexp
+ type : object
+ }
+}
'var re = new RegExp('\w+', 'g');
re.prop = 32;
re', returnByValue: false, generatePreview: true
diff --git a/deps/v8/test/inspector/runtime/remote-object-get-properties-expected.txt b/deps/v8/test/inspector/runtime/remote-object-get-properties-expected.txt
index 216639355e..31080efbc5 100644
--- a/deps/v8/test/inspector/runtime/remote-object-get-properties-expected.txt
+++ b/deps/v8/test/inspector/runtime/remote-object-get-properties-expected.txt
@@ -4,6 +4,17 @@ Running test: testObject
{
id : <messageId>
result : {
+ internalProperties : [
+ [0] : {
+ name : [[Prototype]]
+ value : {
+ className : Object
+ description : Object
+ objectId : <objectId>
+ type : object
+ }
+ }
+ ]
result : [
[0] : {
configurable : true
@@ -17,25 +28,23 @@ Running test: testObject
}
writable : true
}
- [1] : {
- configurable : true
- enumerable : false
- isOwn : true
- name : __proto__
+ ]
+ }
+}
+{
+ id : <messageId>
+ result : {
+ internalProperties : [
+ [0] : {
+ name : [[Prototype]]
value : {
className : Object
description : Object
objectId : <objectId>
type : object
}
- writable : true
}
]
- }
-}
-{
- id : <messageId>
- result : {
result : [
[0] : {
configurable : false
@@ -120,19 +129,6 @@ Running test: testObject
}
writable : false
}
- [6] : {
- configurable : true
- enumerable : false
- isOwn : true
- name : __proto__
- value : {
- className : Object
- description : Object
- objectId : <objectId>
- type : object
- }
- writable : true
- }
]
}
}
diff --git a/deps/v8/test/inspector/runtime/remote-object.js b/deps/v8/test/inspector/runtime/remote-object.js
index 78926479ae..49099d704e 100644
--- a/deps/v8/test/inspector/runtime/remote-object.js
+++ b/deps/v8/test/inspector/runtime/remote-object.js
@@ -201,6 +201,9 @@ InspectorTest.runAsyncTestSuite([
},
async function testRegExp() {
InspectorTest.logMessage((await evaluate({
+ expression: '/\w+/d'
+ })).result);
+ InspectorTest.logMessage((await evaluate({
expression: '/\w+/g'
})).result);
InspectorTest.logMessage((await evaluate({
@@ -219,12 +222,15 @@ InspectorTest.runAsyncTestSuite([
expression: '/\w+/y'
})).result);
InspectorTest.logMessage((await evaluate({
- expression: '/\w+/gimsuy'
+ expression: '/\w+/dgimsuy'
})).result);
InspectorTest.logMessage((await evaluate({
expression: `new RegExp('\\w+', 'g')`,
})).result);
InspectorTest.logMessage((await evaluate({
+ expression: `new RegExp('foo/bar')`
+ })).result);
+ InspectorTest.logMessage((await evaluate({
expression: `var re = new RegExp('\\w+', 'g');
re.prop = 32;
re`,