Files
react-native-devtools-frontend/front_end/protocol/protocol.js
T
Tim van der Lippe 4d1ddf7f73 Migrates protocol/ to ESM internally
Bug: 1006759
Change-Id: I99743fcf3d33bc1e5a3b729c2c544826e1d8e923
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2013156
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-01-23 13:19:20 +00:00

21 lines
723 B
JavaScript

// 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.
import {registerCommands} from '../InspectorBackendCommands.js';
import * as InspectorBackend from './InspectorBackend.js';
import * as NodeURL from './NodeURL.js';
export {
InspectorBackend,
NodeURL,
};
// Create the global here because registering commands will involve putting
// items onto the global.
self.Protocol = self.Protocol || {};
// FIXME: This instance of InspectorBackend should not be a side effect of importing this module.
export const inspectorBackend = new InspectorBackend.InspectorBackend();
registerCommands(inspectorBackend);