This commit is contained in:
Mike
2019-01-15 00:57:57 -08:00
parent d498719558
commit 38b89475d3
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -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;
}
+2 -2
View File
@@ -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;