Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
import fb from "flatbuffers";
/**
* Long
*/
let la = new fb.Long(1, 2);
// $ExpectError
new fb.Long();
// $ExpectError
new fb.Long("s", "t");
// $ExpectError
new fb.Long(1);
let lb = fb.Long.create(1, 2);
// $ExpectError
new fb.Long.create();
// $ExpectError
new fb.Long.create("s", "t");
la.toFloat64();
la.equals(lb);
// $ExpectError
la.equals(10);
/**
// @flow
import fb from "flatbuffers";
/**
* Long
*/
let la = new fb.Long(1, 2);
// $ExpectError
new fb.Long();
// $ExpectError
new fb.Long("s", "t");
// $ExpectError
new fb.Long(1);
let lb = fb.Long.create(1, 2);
// $ExpectError
new fb.Long.create();
// $ExpectError
new fb.Long.create("s", "t");
la.toFloat64();
la.equals(lb);
// $ExpectError
la.equals(10);
/**
* ByteBuffer
*/
// @flow
import fb from "flatbuffers";
/**
* Long
*/
let la = new fb.Long(1, 2);
// $ExpectError
new fb.Long();
// $ExpectError
new fb.Long("s", "t");
// $ExpectError
new fb.Long(1);
let lb = fb.Long.create(1, 2);
// $ExpectError
new fb.Long.create();
// $ExpectError
new fb.Long.create("s", "t");
la.toFloat64();
la.equals(lb);