Skip to content

Commit

Permalink
Normative: Set "name" property for anonymous functions (#1490)
Browse files Browse the repository at this point in the history
 - Changed NamedEvaluation to no longer forward to normal Evaluation
 - Set 'name' property for anonymous functions to the empty string
 - Create 'name' property before the 'prototype' property
 - Respecify 'anonymous function' to mean the 'name' property is the empty string instead of being absent
 - Change Evaluation to forward to NamedEvaluation for anonymous functions

Fixes #1049.
  • Loading branch information
anba authored and ljharb committed Apr 10, 2020
1 parent a3a9551 commit 74a9ef8
Showing 1 changed file with 68 additions and 64 deletions.
Loading

0 comments on commit 74a9ef8

Please sign in to comment.