Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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() {} } ')

↑ Back to the top


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: For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft website: 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�

↑ Back to the top


More information

For more information, visit the following website:

↑ Back to the top


Keywords: KB2555751, kbsurveynew, kbfix, kbprb, kbmbsjscript

↑ Back to the top

Article Info
Article ID : 2555751
Revision : 1
Created on : 6/27/2011
Published on : 6/27/2011
Exists online : False
Views : 314