Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Function.prototype.toString() to be ES6 compatible #1139

Merged
merged 4 commits into from
Dec 5, 2016

Commits on Dec 5, 2016

  1. Change function .toString() behavior to match ES6

    String output must either (a) eval() back as an equivalent object, OR
    (b) eval() to a SyntaxError.
    
    Previous Duktape output, conformant to ES5/ES5.1, matched FunctionDeclaration
    syntax but didn't parse back as an equivalent function.
    svaarala committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    b654310 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb7ad25 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54dbb74 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    04f62d4 View commit details
    Browse the repository at this point in the history