Skip to content

Commit d10d39e

Browse files
iannonossrichardlau
authored andcommitted
test: replace forEach with for-of in test-v8-serders.js
PR-URL: #50791 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 576adc5 commit d10d39e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎test/parallel/test-v8-serdes.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ const hostObject = new (internalBinding('js_stream').JSStream)();
107107
{
108108
consttext='hostObjectTag';
109109
constdata=Buffer.from(text);
110-
constarrayBufferViews=common.getArrayBufferViews(data);
111110

112111
// `buf` is one of `TypedArray` or `DataView`.
113112
functiontestWriteRawBytes(buf){
@@ -138,9 +137,9 @@ const hostObject = new (internalBinding('js_stream').JSStream)();
138137
assert.strictEqual(des.readValue().val,hostObject);
139138
}
140139

141-
arrayBufferViews.forEach((buf)=>{
140+
for(constbufofcommon.getArrayBufferViews(data)){
142141
testWriteRawBytes(buf);
143-
});
142+
}
144143
}
145144

146145
{

0 commit comments

Comments
(0)