summaryrefslogtreecommitdiff
path: root/test/parallel/test-util-types.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2018-03-07 17:05:01 +0100
committerMyles Borins <mylesborins@google.com>2018-04-11 13:23:35 -0400
commit01c9575ad5fbe7e5acce3539d9c6d6df66bfe4b5 (patch)
treea8c98c07b52a0d0e22be321ea7560199365e3363 /test/parallel/test-util-types.js
parent24ec79627da6d4eea18ac51930d98bd2af65c3b9 (diff)
downloadandroid-node-v8-01c9575ad5fbe7e5acce3539d9c6d6df66bfe4b5.tar.gz
android-node-v8-01c9575ad5fbe7e5acce3539d9c6d6df66bfe4b5.tar.bz2
android-node-v8-01c9575ad5fbe7e5acce3539d9c6d6df66bfe4b5.zip
util: add type check functions for BigInt arrays
Adds `isBigInt64Array` and `isBigUint64Array`. PR-URL: https://github.com/nodejs/node/pull/19201 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-util-types.js')
-rw-r--r--test/parallel/test-util-types.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parallel/test-util-types.js b/test/parallel/test-util-types.js
index ac2f0349ec..68c6f86bb6 100644
--- a/test/parallel/test-util-types.js
+++ b/test/parallel/test-util-types.js
@@ -1,3 +1,4 @@
+// Flags: --harmony-bigint
/* global SharedArrayBuffer */
'use strict';
const common = require('../common');
@@ -44,6 +45,8 @@ for (const [ value, _method ] of [
[ new Int32Array() ],
[ new Float32Array() ],
[ new Float64Array() ],
+ [ new BigInt64Array() ],
+ [ new BigUint64Array() ],
[ Object.defineProperty(new Uint8Array(),
Symbol.toStringTag,
{ value: 'foo' }) ],