Skip to content

Commit 966fbfc

Browse files
authored
fixup! lib: use js-only implementation of isDataView()
1 parent df1ceaa commit 966fbfc

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

test/parallel/test-util-types.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -650,23 +650,6 @@ for (const [ value, _method ] of [
650650
}
651651
}
652652

653-
{
654-
function testIsDataView(input) {
655-
return types.isDataView(input);
656-
}
657-
658-
eval('%PrepareFunctionForOptimization(testIsDataView)');
659-
testIsDataView(new DataView(new ArrayBuffer()));
660-
eval('%OptimizeFunctionOnNextCall(testIsDataView)');
661-
assert.strictEqual(testIsDataView(new DataView(new ArrayBuffer())), true);
662-
assert.strictEqual(testIsDataView(Math.random()), false);
663-
664-
if (common.isDebug) {
665-
const { getV8FastApiCallCount } = internalBinding('debug');
666-
assert.strictEqual(getV8FastApiCallCount('types.isDataView'), 2);
667-
}
668-
}
669-
670653
{
671654
function testIsSharedArrayBuffer(input) {
672655
return types.isSharedArrayBuffer(input);

0 commit comments

Comments
 (0)