![]() ![]() Some of the situations that were not treated as errors by Jint, but are reported as syntax errors by ClearScript are listed below: InvariantFromParts_dateFromParts: new InvariantDate(dateFromParts.getFullYear(), dateFromParts.getMonth() + 1, dateFromParts.getDate())ĬlearScript enforces strict ES6 JavaScript syntax, while Jint has a more relaxed syntax interpretation. InvariantFromParts_date: new InvariantDate(date.getFullYear(), date.getMonth() + 1, date.getDate()), Invariant_dateFromParts: new InvariantDate(dateFromParts), ![]() ![]() Let dateFromParts = new Date(date.getFullYear(), date.getMonth(), date.getDate()) For example, the code below returns the same values for Jint and ClearScript engines, with the observation that every DateTime value is converted to UTC: This should not impact your existing code, since FintechOS Platform installations are set to UTC by default. This conversion is bidirectional and lossy. NET DateTime objects and JavaScript Date objects. The EnableDateTimeConversion flag specifies that the script engine will perform automatic conversion between. The JavaScript Date Object Is Always Set to UTCĪ DateTime object constructed from a JavaScript Date object always represents a Coordinated Universal Time (UTC) and has its Kind property set to UTC. Some of the potential compatibility issues are listed below. If you switch from the Jint (ES5) to the ClearScript (ES6) scripting engine, make sure that your legacy code meets the ES6 language specifications. 1 - Enables the ClearScript (ES6) scripting engine.įor more information, see System Parameters.0 - Enables the Jint (ES5) scripting engine (default).To change the JavaScript scripting engine, use the sys-workflowengine-enable-debugging system parameter: Switch between the Jint (ES5) and ClearScript (ES6) Scripting Engines Starting with release 22.1.4, an alternate scripting engine based on the Microsoft ClearScript library allows you to work with JavaScript using the ECMAScript 6 language specification (ES6) (and also to Use the Debugging Server). By default, the FintechOS Platform uses a Jint JavaScript interpreter with full support for the ECMAScript 5.1 language specification (ES5) to run the server automation scripts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |