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

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');

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");

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');

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');