The one liner below in CubeAxesActor.js is causing compilation error when duplicated.
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
The compilation errors are
Line 14:164: Expected an assignment or function call and instead saw an expression no-unused-expressions
I am not sure how it is compiled originally, but I made the following changes and it passes.
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
var symbol_filter = symbols.filter(
function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
}
)
if (enumerableOnly && (symbols == symbol_filter)) {
keys.push.apply(keys, symbols);
}
return keys;
}
}