Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8021815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:06:00+00:00 2026-06-04T22:06:00+00:00

Will the following alert Foo in all browsers, even when minified? class Foo alert(Foo.name)

  • 0

Will the following alert “Foo” in all browsers, even when minified?

class Foo

alert(Foo.name)

Nothing is stated in the doc, I know that IE has problems with function names, and I’m confused with the many issues opened about this, like any of these issues !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:06:02+00:00Added an answer on June 4, 2026 at 10:06 pm

    That may depend on which version of the CoffeeScript compiler you’re using. In the lastest stable release (1.3.3), a “name” property isn’t generated by default.

    class Foo
    

    compiles into

    var Foo;
    Foo = (function() {
      function Foo() {}
      return Foo;
    })();
    

    Since the name property is non-standard and currently not supported by the IE, you cannot really rely on it cross-browser. Detailed information about this are available at the MDN: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/Name

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which of the following expressions will always precede left to right in all browsers(particularly
select @result=@input.query('*') for xml raw,type Above statement will generate following alert: Msg 6819, Level
Will the following program cause any problem during compiling and execution process? class A{
Is it true that there are no guarantees across major browsers that the following
Is there any notification I can listen to that will alert me that the
Following is the Script i am working that will indicate the Feature Detection for
It seems that HTMLCollection and NodeList is undefined in ie6/7,and following code will result
My following code will only alert once from Firebug, using jQuery's append. I was
Considering the following javascript example: var myobj = { func1: function() { alert(name in
I have the following JavaScript: http://jsfiddle.net/5Hapw/ When selecting a date, a variable will alert

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.