| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| * @param {!Object} object |
| * @param {!Common.Linkifier.Options=} options |
| linkify(object, options) { |
| * @param {?Object} object |
| * @param {!Common.Linkifier.Options=} options |
| * @return {!Promise<!Node>} |
| static linkify(object, options) { |
| return Promise.reject(new Error('Can\'t linkify ' + object)); |
| return self.runtime.extension(Linkifier, object).instance().then(linkifier => linkifier.linkify(object, options)); |