a55e009f3a
- we can avoid using regexps, - this CL also fixed a bug. R=alph@chromium.org Bug: chromium:870957 Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I9799507b85942be454a7c20d2768fe7442fc965e Reviewed-on: https://chromium-review.googlesource.com/1250403 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Alexei Filippov <alph@chromium.org> Cr-Commit-Position: refs/heads/master@{#56295}
16 lines
506 B
JavaScript
16 lines
506 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.
|
|
|
|
const {session, contextGroup, Protocol} = InspectorTest.start(
|
|
'Checks preview for Error object');
|
|
|
|
(async function test() {
|
|
const { result: { result } } = await Protocol.Runtime.evaluate({
|
|
expression: `[]['\\n at']()`,
|
|
generatePreview: true
|
|
});
|
|
InspectorTest.logMessage(result);
|
|
InspectorTest.completeTest();
|
|
})()
|