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.
isDataView()
1 parent df1ceaa commit 966fbfcCopy full SHA for 966fbfc
1 file changed
test/parallel/test-util-types.js
@@ -650,23 +650,6 @@ for (const [ value, _method ] of [
650
}
651
652
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
670
{
671
function testIsSharedArrayBuffer(input) {
672
return types.isSharedArrayBuffer(input);
0 commit comments