We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1478144 commit 9548316Copy full SHA for 9548316
bench/index.js
@@ -38,6 +38,19 @@ try {
38
} catch (error) {
39
console.error('cannot benchmark generator functions');
40
}
41
+[
42
+ 'Float64Array', 'Float32Array',
43
+ 'Uint32Array', 'Uint16Array', 'Uint8Array',
44
+ 'Int32Array', 'Int16Array', 'Int8Array',
45
+ 'Uint8ClampedArray',
46
+].forEach(function (value) {
47
+ if (typeof global[value] === 'function') {
48
+ fixtures[value + new Array(19 - value.length).join(' ')] = new (global[value])(1);
49
+ }
50
+});
51
+if (typeof DataView === 'function') {
52
+ fixtures['DataView '] = new DataView(new ArrayBuffer(1));
53
+}
54
55
var filter = process.argv[2] || '';
56
Object.keys(fixtures).filter(function (key) {
0 commit comments