blob: 9c0c2dc50a4a79539110ae7bf75fc19bc085af95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
--- a/third_party/devtools-frontend/src/front_end/core/host/DispatchHttpRequestClient.ts
+++ b/third_party/devtools-frontend/src/front_end/core/host/DispatchHttpRequestClient.ts
@@ -14,7 +14,7 @@ export enum ErrorType {
}
export class DispatchHttpRequestError extends Error {
- constructor(readonly type: ErrorType, readonly response?: DispatchHttpRequestResult, options?: ErrorOptions) {
+ constructor(readonly type: ErrorType, readonly response?: DispatchHttpRequestResult | undefined, options?: ErrorOptions) {
super(undefined, options);
}
}
--- a/third_party/devtools-frontend/src/scripts/build/typescript/typescript_vars.gni
+++ b/third_party/devtools-frontend/src/scripts/build/typescript/typescript_vars.gni
@@ -6,7 +6,7 @@ import("//build/toolchain/rbe.gni")
import("../ninja/vars.gni")
if (host_os == "linux") {
- tsc_binary = "//third_party/typescript/linux-amd64/src/lib/tsc"
+ tsc_binary = "/usr/bin/tsc"
} else if (host_os == "win") {
tsc_binary = "//third_party/typescript/windows-amd64/src/lib/tsc.exe"
} else if (host_os == "mac") {
--- a/third_party/devtools-frontend/src/third_party/typescript/typescript.py
+++ b/third_party/devtools-frontend/src/third_party/typescript/typescript.py
@@ -10,6 +10,7 @@ import os
def GetBinaryPath():
+ return "/usr/bin/tsc"
if platform.machine() == 'arm64':
darwin_path = 'mac-arm64'
else:
--- a/ui/webui/webui_features.gni
+++ b/ui/webui/webui_features.gni
@@ -33,7 +33,7 @@ declare_args() {
# Enable the native TypeScript compiler (tsgo) instead of the JS-based one.
# TODO(crbug.com/423789047): Remove this flag once fully committed to v7.
- use_typescript_go = true
+ use_typescript_go = false
}
if (enable_cast_receiver || is_cast_android || is_castos) {
|