The Function constructor produces an error in Internet Explorer 9 Standards mode

Article translations Article translations
Article ID: 2555751 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You develop a web application in which you use the Function constructor.
  • The function body contains an ECMAScript Fifth Edition (ES5) getter or setter.
  • You run the code in Windows Internet Explorer 9 Standards mode.
In this scenario, the Function constructor produces an error.

For example, if the webpage contains the following code, this issue occurs:
new Function(' return { get x() {} } ')

RESOLUTION

Security update information

To resolve this problem, install the most recent cumulative security update for Windows Internet Explorer. To do this, visit the following Microsoft website:
http://update.microsoft.com
For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft website:
http://www.microsoft.com/technet/security/current.aspx
Note This update was first included in security update 2530548 (MS11-050). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2530548 MS11-050: Cumulative security update for Internet Explorer: June 14, 2011 

MORE INFORMATION

For more information, visit the following website:
Standard ECMA-262: ECMAScript Language Specification (Fifth Edition)

Properties

Article ID: 2555751 - Last Review: June 27, 2011 - Revision: 1.0
APPLIES TO
  • Windows Internet Explorer 9
Keywords: 
kbmbsjscript kbprb kbfix kbsurveynew KB2555751

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com