Update test/test-wpt-in-node.test.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jason Ross
2025-07-25 15:37:57 -05:00
co-authored by Copilot
parent 40e6f7ea13
commit f23cdad2a8
+4 -1
View File
@@ -108,7 +108,10 @@ test_blob(function() {
new Float16Array([2.65625, 58.59375])
]);
}, {
expected: String.fromCharCode(2656, 59903), // Approximate expected output
expected: String.fromCharCode(
Math.round(2.65625 * 1024) & 0xFFFF,
Math.round(58.59375 * 1024) & 0xFFFF
), // Precise expected output based on polyfill logic
type: "",
desc: "Float16Array should work with polyfill"
});