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

  • SEARCH
  • Home
  • 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 8305417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:06:45+00:00 2026-06-08T18:06:45+00:00

I examined a javascript exception in Google Chrome. And I noticed the functions get

  • 0

I examined a javascript exception in Google Chrome.

enter image description here

And I noticed the functions get message, get stack, set message, and set stack. I tried catching this exception and running alert(e.get_message()); only to get an error. I also tried to run alert(e.get message());, which obviously returned another error due to the space.

What are these mysterious methods, and how does a developer call them?

  • 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-08T18:06:46+00:00Added an answer on June 8, 2026 at 6:06 pm

    They’re property accessors. They’re effectively functions that run when you get or set the property.

    e.message; // getter
    
    e.message = "foobar"; // setter
    

    Using property accessors, these do more than just a simple get and set of the property value. They can run code that was established in the object’s property descriptors, so that the property access can have side-effects.

    Example:

    var o = Object.create(Object.prototype, {
        foobar: {
            get: function() { return "getter"; },
            set: function(val) { alert("setter " + val); }
        }
    });
    
    o.foobar;  // "getter"
    o.foobar = "raboof";  // alerts "setter raboof"
    

    To see the property descriptors set for a given property, use Object.getOwnPropertyDescriptor…

    console.dir(Object.getOwnPropertyDescriptor(e, "message"));
    
    Object
        configurable: true
        enumerable: false
        get: function getter() { [native code] }
        set: function setter() { [native code] }
    

    Note that these techniques require an ECMAScript 5 supported implementation.

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

Sidebar

Related Questions

I'm using console.log(variable) and firebug to examine javascript code. Occasionally, I get [object][object] as
I'm trying to get my head round the revealing module pattern in javascript. I'm
I examined about stack unwinding on thread procedure in win32 environment. My test code
I got an email today saying: In every case that we have examined, this
I found this on the internet and examined source codes. a program for locating
I use jQuery for my projects. However, I examined a JavaScript library, Ext JS .
I want to examine the properties of a DOM object in Google Chrome Web
Examining Zend Framework, I found that all setter methods (of those I’ve examined) return
I have a routine that examines thousands of records looking for discrepancies. This can
I've been searching and i can't find any ff addons or javascript for finding

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.