mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
yup
This commit is contained in:
@@ -88,10 +88,10 @@ class Test {
|
||||
}
|
||||
|
||||
static testClear(builder: flatbuffers.Builder, a: number, b: number) {
|
||||
let offsets: number[] = [];
|
||||
let iterations = 100;
|
||||
const offsets: number[] = [];
|
||||
const iterations = 100;
|
||||
for (let i = 0; i < iterations; i++) {
|
||||
let offset = Test.createTest(builder, a, b);
|
||||
const offset = Test.createTest(builder, a, b);
|
||||
offsets.push(offset);
|
||||
builder.clear();
|
||||
}
|
||||
@@ -99,7 +99,7 @@ class Test {
|
||||
let lastOffsetValue = offsets[0];
|
||||
let sameValue = true;
|
||||
for (let i = 1; i < offsets.length; i++) {
|
||||
if (lastOffsetValue != offsets[i]) {
|
||||
if (lastOffsetValue !== offsets[i]) {
|
||||
sameValue = false;
|
||||
return sameValue;
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -43,8 +43,8 @@ declare global {
|
||||
constructor(initial_size?: number);
|
||||
|
||||
/**
|
||||
* Reset all the state in this FlatBufferBuilder
|
||||
* so it can be reused to construct another buffer.
|
||||
* Reset all the state in this FlatBufferBuilder
|
||||
* so it can be reused to construct another buffer.
|
||||
*/
|
||||
clear(): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user