[HtmlUnit] [htmlunit:bugs] #1968 Function.prototype.toString shall return actual source code
RBRi via HtmlUnit-develop <[email protected]> Fri, 10 Mar 2023 18:40:14 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/bugs/1968/bee473a268bd19a80d1e457c2ac1bd3b7f4a9e20.bugs@htmlunit.p.sourceforge.net> |
This is a multi-part message in MIME format. --===============8228884138592548597== Content-Type: multipart/related; boundary="===============8327161269154257900==" This is a multi-part message in MIME format. --===============8327161269154257900== Content-Type: multipart/alternative; boundary="===============8319359227034696179==" MIME-Version: 1.0 --===============8319359227034696179== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit - **status**: accepted --> closed --- ** [bugs:#1968] Function.prototype.toString shall return actual source code** **Status:** closed **Group:** 2.31 **Created:** Sun Jun 17, 2018 11:49 AM UTC by Alex **Last Updated:** Fri Mar 10, 2023 06:40 PM UTC **Owner:** RBRi Some scripts make use of Function.prototype.toString and rely on it beeing the original source code especially newlines. This is due to some pattern matching done later via regexp. This breaks with the unparsing/decompiling that HTMLUNIT does. I therefore propose to store the original JS source and directly return it. This is the same as browsers do. Example: https://bugzilla.mozilla.org/show_bug.cgi?id=761723 --- Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. --===============8319359227034696179== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit <div class="markdown_content"><ul> <li><strong>status</strong>: accepted --> closed</li> </ul> <hr/> <p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/htmlunit/bugs/1968/">[bugs:#1968]</a> Function.prototype.toString shall return actual source code</strong></p> <p><strong>Status:</strong> closed<br/> <strong>Group:</strong> 2.31<br/> <strong>Created:</strong> Sun Jun 17, 2018 11:49 AM UTC by Alex<br/> <strong>Last Updated:</strong> Fri Mar 10, 2023 06:40 PM UTC<br/> <strong>Owner:</strong> RBRi</p> <p>Some scripts make use of Function.prototype.toString and rely on it beeing the original source code especially newlines. This is due to some pattern matching done later via regexp. This breaks with the unparsing/decompiling that HTMLUNIT does.</p> <p>I therefore propose to store the original JS source and directly return it.</p> <p>This is the same as browsers do. Example: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=761723" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=761723</a></p> <hr/> <p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p> <p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div> --===============8319359227034696179==-- --===============8327161269154257900==-- --===============8228884138592548597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============8228884138592548597== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ HtmlUnit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/htmlunit-develop --===============8228884138592548597==--