There was an error while loading. Please reload this page.
1 parent cfba773 commit 9472e40Copy full SHA for 9472e40
node_translators/method.js
@@ -18,6 +18,10 @@ module.exports = function (node, indent) {
18
if (node.isStatic) {
19
str += 'static ';
20
}
21
+ // Fall back to public if nothing is specified
22
+ if (!node.visibility) {
23
+ node.visibility = 'public';
24
+ }
25
str += node.visibility + ' function ';
26
if (node.byref) {
27
str += '&';
0 commit comments