| Summary: | Make Function.(name|length) configurable | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yury Selivanov <yselivanov> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | cdumez, ggaren, gskachkov, mark.lam, yselivanov, zcorpan |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Yury Selivanov
2015-05-29 10:17:12 PDT
In short, the following should work:
function f(){};
Object.defineProperty(f, 'name', {value: 'g'});
*** Bug 158062 has been marked as a duplicate of this bug. *** Test for "length" in test262 at https://github.com/tc39/test262/blob/83b27c9beb7b3ea78b319148b5c82a5411a333b1/test/language/statements/function/13.2-15-1.js#L19 This is already fixed in ToT. You can verify this for yourself using Safari Technology Preview or a WebKit Nightly build (https://webkit.org/downloads/). |