10000 CC is a bitch · protobufjs/bytebuffer.js@a2a2979 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2a2979

Browse files
committed
CC is a bitch
1 parent b70bd90 commit a2a2979

File tree

5 files changed

+29
-35
lines changed

5 files changed

+29
-35
lines changed

ByteBuffer.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,8 +1590,10 @@
15901590

15911591
/**
15921592
* Base64 alphabet.
1593-
* @type {string}
1594-
*/ // @const will inline this, which is not so smart
1593+
* @type{string}
1594+
* @const
1595+
* @private
1596+
*/ // FIXME: CC inlines this, which is not so smart regarding script size. Any ideas?
15951597
var B64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
15961598

15971599
/**
@@ -2182,17 +2184,12 @@
21822184

21832185
// Enable module loading if available
21842186
if (typeof module !== 'undefined' && module["exports"]) { // CommonJS
2185-
/** @expose */
21862187
module["exports"] = loadByteBuffer(require("long"));
21872188
} else if (typeof define !== 'undefined' && define["amd"]) { // AMD
21882189
define("ByteBuffer", ["Math/Long"], function(Long) { return loadByteBuffer(Long); });
21892190
} else { // Shim
2190-
if (!global["dcodeIO"]) {
2191-
/** @expose */
2192-
global["dcodeIO"] = {};
2193-
}
2194-
/** @expose */
2195-
global["dcodeIO"]["ByteBuffer"] = loadByteBuffer(dcodeIO.Long);
2191+
if (!global["dcodeIO"]) global["dcodeIO"] = {};
2192+
global["dcodeIO"]["ByteBuffer"] = loadByteBuffer(global["dcodeIO"]["Long"]);
21962193
}
21972194

21982195
})(this);

ByteBuffer.min.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ByteBuffer.min.map

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

ByteBuffer.noexpose.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,8 +1504,10 @@
15041504

15051505
/**
15061506
* Base64 alphabet.
1507-
* @type {string}
1508-
*/ // @const will inline this, which is not so smart
1507+
* @type{string}
1508+
* @const
1509+
* @private
1510+
*/ // FIXME: CC inlines this, which is not so smart regarding script size. Any ideas?
15091511
var B64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
15101512

15111513
/**
@@ -2078,10 +2080,8 @@
20782080
} else if (typeof define !== 'undefined' && define["amd"]) { // AMD
20792081
define("ByteBuffer", ["Math/Long"], function(Long) { return loadByteBuffer(Long); });
20802082
} else { // Shim
2081-
if (!global["dcodeIO"]) {
2082-
global["dcodeIO"] = {};
2083-
}
2084-
global["dcodeIO"]["ByteBuffer"] = loadByteBuffer(dcodeIO.Long);
2083+
if (!global["dcodeIO"]) global["dcodeIO"] = {};
2084+
global["dcodeIO"]["ByteBuffer"] = loadByteBuffer(global["dcodeIO"]["Long"]);
20852085
}
20862086

20872087
})(this);

0 commit comments

Comments
 (0)
0