JavaScript revision aims for browser cohesion



Email    print   
April 16, 2009 —  (Page 1 of 2)
Ten years after the last major revision of the language, JavaScript is ready for an update. ECMA International, on April 9, released the final draft of its specification for ECMAScript Fifth Edition—more commonly known as JavaScript—with important changes around JSON support.

Fifth Edition now includes support for the JSON object encoding format. Additionally, the specification includes a strict mode that offers better error checking and improves the overall security of JavaScript applications.

Further confusing the nomenclature is the fact that ECMAScript, Fifth Edition, was developed under the enumeration of version 3.1. Brendan Eich, CTO of the Mozilla Corporation and the creator of JavaScript, was involved in the ECMAScript 3.1 specification process.

Much of the work done on this specification involved bringing individual browser functionalities into a more open standard. Eich said that the biggest change for developers will be the common availability of getters and setters, which have been in Firefox for some time and have trickled into other browsers over time.

Eich also highlighted what he's calling a reflective meta-programming API. “What it means is you can make objects that look more like host objects, the magic objects you can set in the Document Object Model,” said Eich.

Objects are now more secure too, added JavaScript's creator. “JSON has dethroned XML for pure data interchange,” said Eich. “But it has had to be implemented as a JavaScript library. You have to be careful how you use it. With this new codec as part of the standard, they don't have to worry about downloading the libraries. There are other improvements to the integrity of JSON, so when you make arrays and objects from decoding this string, you get arrays and objects, not some attack encoded inside it.”

Eich said that the Fifth Edition adds a strict mode, similar to sort that rose to prominence in the Perl community. He said strict mode is helpful when “I want to have more error checking, or have some sanity checks done. When you assign to a read-only property, it shouldn't just fail. With strict mode you get an exception. The hope is a lot of people will just turn it on. People got used to seeing 'use strict' at the top of their Perl code. This will help us evolve the language so that someday, many years down the road, we can make the general language stricter.”



Related Search Term(s): ECMA, JavaScript

Pages 1 2 


Share this link: http://sdt.bz/33422
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
Node.js pushes JavaScript to the server-side
The next step for this language, though, is toward Windows Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb