mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
let {session, contextGroup, Protocol} = InspectorTest.start('crbug.com/736302');
|
|
|
|
InspectorTest.runAsyncTestSuite([
|
|
async function testThrowException() {
|
|
await Protocol.Runtime.enable();
|
|
Protocol.Runtime.evaluate({expression: `
|
|
console.count({
|
|
get [Symbol.toStringTag]() {
|
|
throw new Error();
|
|
}
|
|
});`});
|
|
InspectorTest.logMessage(await Protocol.Runtime.onceConsoleAPICalled());
|
|
await Protocol.Runtime.disable();
|
|
},
|
|
|
|
async function testCustomName() {
|
|
await Protocol.Runtime.enable();
|
|
Protocol.Runtime.evaluate({expression: `
|
|
console.count({
|
|
get [Symbol.toStringTag]() {
|
|
return 'MyObject';
|
|
}
|
|
});`});
|
|
InspectorTest.logMessage(await Protocol.Runtime.onceConsoleAPICalled());
|
|
await Protocol.Runtime.disable();
|
|
},
|
|
|
|
async function testObject() {
|
|
await Protocol.Runtime.enable();
|
|
Protocol.Runtime.evaluate({expression: `
|
|
console.count({});`});
|
|
InspectorTest.logMessage(await Protocol.Runtime.onceConsoleAPICalled());
|
|
await Protocol.Runtime.disable();
|
|
}
|
|
|
|
]);
|
|
|