File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8589,6 +8589,8 @@ declare namespace chrome {
85898589 MIPS = "mips",
85908590 /** Specifies the processer architecture as mips64. */
85918591 MIPS64 = "mips64",
8592+ /** Specifies the processer architecture as riscv64. */
8593+ RISCV64 = "riscv64",
85928594 }
85938595
85948596 /**
@@ -8755,7 +8757,7 @@ declare namespace chrome {
87558757 /** The machine's processor architecture. */
87568758 arch: `${PlatformArch}`;
87578759 /** The native client architecture. This may be different from arch on some platforms. */
8758- nacl_arch: `${PlatformNaclArch}`;
8760+ nacl_arch? : `${PlatformNaclArch}`;
87598761 }
87608762
87618763 /** An object which allows two way communication with other pages. */
Original file line number Diff line number Diff line change @@ -638,6 +638,7 @@ function testRuntime() {
638638 chrome . runtime . PlatformArch . MIPS64 === "mips64" ;
639639 chrome . runtime . PlatformArch . X86_32 === "x86-32" ;
640640 chrome . runtime . PlatformArch . X86_64 === "x86-64" ;
641+ chrome . runtime . PlatformArch . RISCV64 === "riscv64" ;
641642
642643 chrome . runtime . PlatformNaclArch . ARM === "arm" ;
643644 chrome . runtime . PlatformNaclArch . MIPS === "mips" ;
@@ -709,8 +710,8 @@ function testRuntime() {
709710
710711 chrome . runtime . getPlatformInfo ( ) ; // $ExpectType Promise<PlatformInfo>
711712 chrome . runtime . getPlatformInfo ( ( platformInfo ) => { // $ExpectType void
712- platformInfo . arch ; // $ExpectType "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64"
713- platformInfo . nacl_arch ; // $ExpectType "arm" | "mips" | "mips64" | "x86-32" | "x86-64"
713+ platformInfo . arch ; // $ExpectType "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64" | "riscv64"
714+ platformInfo . nacl_arch ; // $ExpectType "arm" | "mips" | "mips64" | "x86-32" | "x86-64" | undefined
714715 platformInfo . os ; // $ExpectType "android" | "cros" | "fuchsia" | "linux" | "mac" | "openbsd" | "win"
715716 } ) ;
716717 // @ts -expect-error
You can’t perform that action at this time.
0 commit comments