File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- if ( typeof performance === 'undefined' ) {
2- global . performance = require ( 'perf_hooks' ) . performance
3- }
4-
51import { createRequire } from 'module'
62import t from 'tap'
73import { LRUCache as LRU } from '../dist/esm/index.js'
Original file line number Diff line number Diff line change 1- if ( typeof performance === 'undefined' ) {
2- global . performance = require ( 'perf_hooks' ) . performance
3- }
41import t from 'tap'
52import { BackgroundFetch , LRUCache } from '../dist/esm/index.js'
63import { expose } from './fixtures/expose.js'
Original file line number Diff line number Diff line change 1- if ( typeof performance === 'undefined' ) {
2- global . performance = require ( 'perf_hooks' ) . performance
3- }
4-
51import t , { Test } from 'tap'
62import { LRUCache } from '../dist/esm/index.js'
73import { expose } from './fixtures/expose.js'
You can’t perform that action at this time.
0 commit comments