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 9244819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:07:34+00:00 2026-06-18T09:07:34+00:00

John Resig used function decompilation technique in his simple inheritance example. His technique with

  • 0

John Resig used function decompilation technique in his simple inheritance example. His technique with regular expression method was also used in jQuery library and the same technique was criticized on opera blog. On opera blog some guy wrote:

This is not a good idea because decompiling functions is an optional feature of the ES-262 spec. It is slow and requires too many resources for certain low-end platforms, so it is not supported by any of the Opera Mobile versions.

I’m well aware of Function.prototype.toString method and I also know about it’s varying implementation by different browser vendors. So to come to my question:

Is it possible to perform cross browser, reliable function decompilation at the current state?

If yes which one of techniques I mentioned above should I use? And why?

  • 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-18T09:07:35+00:00Added an answer on June 18, 2026 at 9:07 am

    which one of techniques i mentioned above should i use?

    There is only one technique, and that’s the toString method of functions.

    If you are using a regex and its test method, the argument will just implicitly be converted to a string – by calling its toString method.

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

Sidebar

Related Questions

I am using John resig's implementation class mentioned here: http://ejohn.org/blog/simple-javascript-inheritance/ Now I have a
John Resig’s Simple Javascript Inheritance: http://ejohn.org/blog/simple-javascript-inheritance/ I tried to do such thing: var SomeClass
I'm using John Resig's excellent javascript class for simple javascript inheritance and I'm having
I am using John Resig's Simple JavaScript Inheritance and have run into an issue
I found t his function on the john resig blog for removing an element
I have a custom Javascript class (created using John Resig's Simple Javascript Inheritance ).
I'm currently working on some code based on John Resig - Simple JavaScript Inheritance
I am using John Resig's Simple JavaScript Inheritance to create a class that can
I came across one article by john resig explaining JavaScript Inheritance. http://ejohn.org/blog/simple-javascript-inheritance/ In this
I decided to try out JavaScript genius John Resig's simple JavaScript inheritance as detailed

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.