1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

fix: js perf tests

modules/js/perf/perf_helpfunc.js and target tests, e.g. perf_gaussianBlur.js contained "const isNodeJs", leading to re-definition when using associated *.html files.
This commit is contained in:
gblikas
2024-07-26 13:24:26 -07:00
parent 15783d6598
commit 99672a2691
17 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if(isNodeJs) {
var Base = require("./base");
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
+1 -1
View File
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');
@@ -1,4 +1,4 @@
const isNodeJs = (typeof window) === 'undefined'? true : false;
var isNodeJs = (typeof window) === 'undefined'? true : false;
if (isNodeJs) {
var Benchmark = require('benchmark');