: 4581 | 108544 | 12346

Make Server Side JS standards compliant 
New idea submissions, commenting and voting are no longer available on this site. Logins have also been disabled.
Use this IdeaSpace to post ideas about Domino Designer.

: 42
: 42
: 0
: Domino Designer
: server side js, javascript
: Tommy Valand2746 26 Mar 2010
: / Email
The current implementation of Server Side JS has several inconsistencies in regard to the ECMA-262 spec(JavaScript 1.3) which I believe is what the Server Side JS in XPages is based upon.
This makes the API very unpredictable. Take Array.splice. According to spec, it should change the Array (remove item/-s), and return the deleted items. In Domino SSJS, it doesn't change the array, but returns an array with the items that remains after the deletion. Functions/objects are a little funky when doing more advanced stuff (function.call/apply). Regular expressions are also badly implemented.
What I fear the most is if the bugs remain for a couple of versions, IBM decides to keep the buggy API for backwards compatibility. :\
Here's an idea IBM: Why not use a SSJS engine developed by people who care about standards (Rhino)? 


Welcome to IdeaJam™

You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>

IdeaJam developed by

Elguji Software Logo