[Webkit-unassigned] [Bug 149175] New: JS Function removed after parsing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 15 11:29:20 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=149175
Bug ID: 149175
Summary: JS Function removed after parsing
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mail at rodneyrehm.de
Steps to reproduce:
Open http://rodneyrehm.de/t/css.escape (with cold cache / freshly started browser) and open DevTools and run `CSS.escape` to print the value.
Expected behavior:
The function's body is printed to the console
Actual behavior:
`undefined` is printed to the console
Additional Notes:
The issue cannot be reproduced reliably. Sometimes hitting Command+R will make CSS.escape actually hold the function, sometimes you need Command+Shift+R. Usually cleaning the cache and or restarting the browser before opening this page will make WebKit (or JavaScriptCore, or whatever) exhibit this behavior. Eventually CSS.escape will hold the function, but it may lose it again.
It feels like some script optimization routine is (sometimes) killing the function declaration, because it is not used immediately (i.e. dead code removal), or some such.
Live Testcase: http://rodneyrehm.de/t/css.escape
Related issue on Github: https://github.com/mathiasbynens/CSS.escape/issues/2
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150915/e180880d/attachment.html>
More information about the webkit-unassigned
mailing list