Bug 144618
Summary: | Consider that static values won't work as intended when defined in the global scope and when JSCallbackObject has a static value with the same identifier | ||
---|---|---|---|
Product: | WebKit | Reporter: | Saam Barati <saam> |
Component: | JavaScriptCore | Assignee: | Saam Barati <saam> |
Status: | NEW | ||
Severity: | Normal | CC: | basile_clement, fpizlo, ggaren, mark.lam, mmirman, msaboff, oliver |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Saam Barati
For example, if we define a static value named "staticValue" on a JSCallbackObject (and that value doesn't return 20), this JS code won't work:
```
var staticValue = 20;
assert(staticValue === 20);
```
Consider matching the semantics of static functions here.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |