Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 995393 of New in JavaScript 1.8.1

  • Revision slug: Web/JavaScript/New_in_JavaScript/1.8.1
  • Revision title: New in JavaScript 1.8.1
  • Revision id: 995393
  • Created:
  • Creator: fscholz
  • Is current revision? Yes
  • Comment minor cleaning

Revision Content

{{jsSidebar("New_in_JS")}}

The following is a changelog for JavaScript 1.8.1. This version was included in Firefox 3.5.

JavaScript 1.8.1 is a modest update syntactically to JavaScript; the main change in this release is the addition of the Tracemonkey just-in-time compiler, which improves performance.

New features in JavaScript 1.8.1

  • {{jsxref("Object.getPrototypeOf()")}}
  • Support for native JSON
  • {{jsxref("String.prototype.trim()")}}
  • {{jsxref("String.prototype.trimLeft()")}}
  • {{jsxref("String.prototype.trimRight()")}}
  • {{jsxref("String.prototype.startsWith()")}}

Changed functionality in JavaScript 1.8.1

  • Implicit setting of properties in object and array initializers no longer execute setters in JavaScript. This makes the behavior of setting the values of properties more predictable.

Revision Source

<div>{{jsSidebar("New_in_JS")}}</div>

<p>The following is a changelog for JavaScript 1.8.1. This version was included in <a href="/en-US/Firefox/Releases/3.5">Firefox 3.5</a>.</p>

<p>JavaScript 1.8.1 is a modest update syntactically to JavaScript; the main change in this release is the addition of the <a href="/en-US/docs/SpiderMonkey/Internals/Tracing_JIT" title="SpiderMonkey/Internals/Tracing JIT">Tracemonkey just-in-time compiler</a>, which improves performance.</p>

<h2 id="New_features_in_JavaScript_1.8.1">New features in JavaScript 1.8.1</h2>

<ul>
 <li>{{jsxref("Object.getPrototypeOf()")}}</li>
 <li><a href="/en-US/docs/Web/JavaScript/Guide/Using_native_JSON">Support for native JSON</a></li>
 <li>{{jsxref("String.prototype.trim()")}}</li>
 <li>{{jsxref("String.prototype.trimLeft()")}}</li>
 <li>{{jsxref("String.prototype.trimRight()")}}</li>
 <li>{{jsxref("String.prototype.startsWith()")}}</li>
</ul>

<h2 id="Changed_functionality_in_JavaScript_1.8.1">Changed functionality in JavaScript 1.8.1</h2>

<ul>
 <li>Implicit setting of properties in object and array initializers no longer execute setters in JavaScript. This makes the behavior of setting the values of properties more predictable.</li>
</ul>
Revert to this revision