Disabling Staged ES6 Features
Some ES6 features have not been finalized and may still contain bugs in the Chromium version(s) used by BrightSign. A crash may occur if your JavaScript application (or the framework code used to build the application) uses one of these features: For example, this is a known issue in Chromium version 45 that will cause a crash on BrightSign XTx44 and XDx34 players.
To bypass such issues, you can disable all staged (i.e. experimental) ES6 features using the disable-javascript-harmony-shipping registry flag (which requires firmware version 7.1.49 or later). The following example shows how to set this registry flag using the registry JavaScript module (you can also use the roRegistry BrightScript object).
var registryClass = require("@brightsign/registry");
var registry = new registryClass();
var systemClass = require("@brightsign/system");
var system = new systemClass();
registry.write("html", {js-disable-harmony-shipping:"1"}).then(
function(){console.log("Write Successful");});
system.reboot()Enabling this registry flag will limit the available JavaScript syntax. However, for ES6 features to be available, an application must be written to be compatible with both ES5 and ES6, so enabling this flag should not cause syntax errors or similar issues.