You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2023/08/26 02:53:31 UTC
[tvm] branch unity updated: Change == to === operator in compact.ts file (#15620)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/unity by this push:
new d28613f3cf Change == to === operator in compact.ts file (#15620)
d28613f3cf is described below
commit d28613f3cf45dc3d85e446b202104cc59ac08a55
Author: Max Base <Ma...@Gmail.Com>
AuthorDate: Sat Aug 26 03:53:25 2023 +0100
Change == to === operator in compact.ts file (#15620)
---
web/src/compact.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/src/compact.ts b/web/src/compact.ts
index d5df72287c..48d40d86f8 100644
--- a/web/src/compact.ts
+++ b/web/src/compact.ts
@@ -24,7 +24,7 @@ import EmccWASI from "./tvmjs_runtime_wasi";
* Get performance measurement.
*/
export function getPerformance(): Performance {
- if (typeof performance == "undefined") {
+ if (typeof performance === "undefined") {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const performanceNode = require("perf_hooks");
return performanceNode.performance as Performance;
@@ -38,7 +38,7 @@ export function getPerformance(): Performance {
* @param url The url.
*/
export function createWebSocket(url: string): WebSocket {
- if (typeof WebSocket == "undefined") {
+ if (typeof WebSocket === "undefined") {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const WebSocket = require("ws");
return new WebSocket(url);