File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import * as fs from 'node:fs' ;
88import * as path from 'node:path' ;
99
10- import { sed } from './sed.ts' ;
11-
1210const BUILD_DIR = path . join ( process . cwd ( ) , 'build' ) ;
1311
1412/**
@@ -73,21 +71,6 @@ export const experiments = {
7371 ` ;
7472 writeFile ( runtimeFile , runtimeContent ) ;
7573
76- // Update protocol_client to remove:
77- // 1. self.Protocol assignment
78- // 2. Call to register backend commands.
79- const protocolClientDir = path . join (
80- BUILD_DIR ,
81- devtoolsFrontEndCorePath ,
82- 'protocol_client' ,
83- ) ;
84- const clientFile = path . join ( protocolClientDir , 'protocol_client.js' ) ;
85- const globalAssignment = / s e l f \. P r o t o c o l = s e l f \. P r o t o c o l \| \| \{ \} ; / ;
86- const registerCommands =
87- / I n s p e c t o r B a c k e n d C o m m a n d s \. r e g i s t e r C o m m a n d s \( I n s p e c t o r B a c k e n d \. i n s p e c t o r B a c k e n d \) ; / ;
88- sed ( clientFile , globalAssignment , '' ) ;
89- sed ( clientFile , registerCommands , '' ) ;
90-
9174 copyDevToolsDescriptionFiles ( ) ;
9275}
9376
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments