Flatbuffers Merge commit '8cd6f0538a362ceefbcfcbf6c7b8b3f341d1fb41' into master
Upgrade flatbuffers to the latest.
Change-Id: I901787ac6fc5d7ce2c4019cc0d275de68086b4d8
diff --git a/third_party/flatbuffers/js/long.js b/third_party/flatbuffers/js/long.js
new file mode 100644
index 0000000..9fc7e7e
--- /dev/null
+++ b/third_party/flatbuffers/js/long.js
@@ -0,0 +1,26 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.Long = exports.createLong = void 0;
+function createLong(low, high) {
+ return Long.create(low, high);
+}
+exports.createLong = createLong;
+var Long = /** @class */ (function () {
+ function Long(low, high) {
+ this.low = low | 0;
+ this.high = high | 0;
+ }
+ Long.create = function (low, high) {
+ // Special-case zero to avoid GC overhead for default values
+ return low == 0 && high == 0 ? Long.ZERO : new Long(low, high);
+ };
+ Long.prototype.toFloat64 = function () {
+ return (this.low >>> 0) + this.high * 0x100000000;
+ };
+ Long.prototype.equals = function (other) {
+ return this.low == other.low && this.high == other.high;
+ };
+ Long.ZERO = new Long(0, 0);
+ return Long;
+}());
+exports.Long = Long;