| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,6 +57,7 @@ const { | |||
| 57 | 57 | isArrayBufferView, | |
| 58 | 58 | isAnyArrayBuffer, | |
| 59 | 59 | isTypedArray, | |
| 60 | + isFloat16Array, | ||
| 60 | 61 | isFloat32Array, | |
| 61 | 62 | isFloat64Array, | |
| 62 | 63 | } = require('internal/util/types'); | |
@@ -315,6 +316,7 @@ function onJobDone(buf, callback, error) { | |||
| 315 | 316 | // be an integer-type TypedArray. | |
| 316 | 317 | function getRandomValues(data) { | |
| 317 | 318 | if (!isTypedArray(data) || | |
| 319 | + isFloat16Array(data) || | ||
| 318 | 320 | isFloat32Array(data) || | |
| 319 | 321 | isFloat64Array(data)) { | |
| 320 | 322 | // Ordinarily this would be an ERR_INVALID_ARG_TYPE. However, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,14 +11,6 @@ module.exports = { | |||
| 11 | 11 | 'historical.any.js': { | |
| 12 | 12 | 'skip': 'Not relevant in Node.js context', | |
| 13 | 13 | }, | |
| 14 | - 'getRandomValues.any.js': { | ||
| 15 | - 'fail': { | ||
| 16 | - 'note': 'Node.js does not support Float16Array', | ||
| 17 | - 'expected': [ | ||
| 18 | - 'Float16 arrays', | ||
| 19 | - ], | ||
| 20 | - }, | ||
| 21 | - }, | ||
| 22 | 14 | 'sign_verify/eddsa_small_order_points.https.any.js': { | |
| 23 | 15 | 'fail': { | |
| 24 | 16 | 'note': 'see https://github.com/nodejs/node/issues/54572', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | + // Flags: --js-float16array | ||
| 2 | + // TODO(LiviaMedeiros): once `Float16Array` is unflagged in v8, remove the line above | ||
| 1 | 3 | 'use strict'; | |
| 2 | 4 | ||
| 3 | 5 | const common = require('../common'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments