Skip to content

Commit eb4f130

Browse files
LiviaMedeirostargos
authored andcommitted
test: remove Float16Array flag
PR-URL: #58184 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 09a85fd commit eb4f130

File tree

6 files changed

+3
-21
lines changed

6 files changed

+3
-21
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export default [
126126
DecompressionStream: 'readonly',
127127
EventSource: 'readable',
128128
fetch: 'readonly',
129+
Float16Array: 'readonly',
129130
FormData: 'readonly',
130131
navigator: 'readonly',
131132
ReadableStream: 'readonly',

test/parallel/test-assert-partial-deep-equal.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
// Flags: --js-float16array
2-
// TODO(LiviaMedeiros): once `Float16Array` is unflagged in v8, remove the line above
31
'use strict';
42

53
const common = require('../common');
64
const vm = require('node:vm');
75
const assert = require('node:assert');
86
const { describe, it } = require('node:test');
97

10-
// TODO(LiviaMedeiros): once linter recognizes `Float16Array`, remove next line
11-
const { Float16Array } = globalThis;
12-
138
const x = ['x'];
149

1510
function createCircularObject() {

test/parallel/test-assert-typedarray-deepequal.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
// Flags: --js-float16array
2-
// TODO(LiviaMedeiros): once `Float16Array` is unflagged in v8, remove the line above
31
'use strict';
42

53
require('../common');
64
const assert = require('assert');
75
const { test, suite } = require('node:test');
86

9-
// TODO(LiviaMedeiros): once linter recognizes `Float16Array`, remove next line
10-
const { Float16Array } = globalThis;
11-
127
function makeBlock(f) {
138
const args = Array.prototype.slice.call(arguments, 1);
149
return function() {

test/parallel/test-util-types.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Flags: --experimental-vm-modules --expose-internals --allow-natives-syntax --js-float16array
2-
// TODO(LiviaMedeiros): once `Float16Array` is unflagged in v8, remove `--js-float16array` above
1+
// Flags: --experimental-vm-modules --expose-internals --allow-natives-syntax
32
'use strict';
43
const common = require('../common');
54
const assert = require('assert');
@@ -10,9 +9,6 @@ const { JSStream } = internalBinding('js_stream');
109

1110
const external = (new JSStream())._externalStream;
1211

13-
// TODO(LiviaMedeiros): once linter recognizes `Float16Array`, remove next line
14-
const { Float16Array } = globalThis;
15-
1612
for (const [ value, _method ] of [
1713
[ external, 'isExternal' ],
1814
[ new Date() ],

test/parallel/test-v8-serdes.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Flags: --expose-internals --js-float16array
1+
// Flags: --expose-internals
22

33
'use strict';
44

@@ -7,9 +7,6 @@ const { internalBinding } = require('internal/test/binding');
77
const assert = require('assert');
88
const v8 = require('v8');
99
const os = require('os');
10-
// TODO(bartlomieju): once `Float16Array` is available in stable V8,
11-
// remove this line and `--js-float16array` flag up top
12-
const { Float16Array } = globalThis;
1310

1411
const circular = {};
1512
circular.circular = circular;

test/wpt/test-webcrypto.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Flags: --js-float16array
2-
// TODO(LiviaMedeiros): once `Float16Array` is unflagged in v8, remove the line above
31
'use strict';
42

53
const common = require('../common');

0 commit comments

Comments
 (0)