bf505e6065
- Label as "bigint" in DevTools heap snapshot viewer - Treat as new primitive in injected-script-source - Show primitive value as property for BigIntObject - Adds the "n" suffix onto description, both with/without inspector being present Bug: v8:7486 Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng;master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng Change-Id: I47a02e32f9bdd9124a6c91056965574ecd443867 Reviewed-on: https://chromium-review.googlesource.com/940804 Commit-Queue: Erik Luo <luoe@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Alexei Filippov <alph@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#51855}
25 lines
738 B
JavaScript
25 lines
738 B
JavaScript
// Copyright 2018 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.
|
|
// TODO(luoe): remove flag when it is on by default.
|
|
// Flags: --harmony-bigint
|
|
|
|
let {session, contextGroup, Protocol} =
|
|
InspectorTest.start("Tests Runtime.evaluate with unserializable results.");
|
|
|
|
Protocol.Runtime.enable();
|
|
(async function() {
|
|
await testCase("-0");
|
|
await testCase("NaN");
|
|
await testCase("Infinity");
|
|
await testCase("-Infinity");
|
|
await testCase("1n");
|
|
|
|
InspectorTest.completeTest();
|
|
})();
|
|
|
|
async function testCase(expression) {
|
|
InspectorTest.log(expression);
|
|
InspectorTest.logMessage(await Protocol.Runtime.evaluate({expression}));
|
|
}
|