edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [edbrowse-dev] function.toString
@ 2019-09-10  9:16 Karl Dahlke
  0 siblings, 0 replies; only message in thread
From: Karl Dahlke @ 2019-09-10  9:16 UTC (permalink / raw)
  To: edbrowse-dev

As per my earlier email about an infinite loop,
it maybe shouldn't be running that code at all, because of an earlier test.
Consider this.

o = {removeCookie:function(){}}; o.removeCookie.toString();

duktape gives us this.

function () { [ecmascript code] }

But the web page expects it to match the regexp

\w+ *\(\) *{\w+ *['|"].+['|"];? *}

Which it does not, and then it goes down a strange path.
Perhaps you have access to other engines like v8 or js24 etc,
or just put it in an alert in javascript and see what other browsers do with it.
Is ducktape doing something nonstandard?

Karl Dahlke

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-10  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10  9:16 [edbrowse-dev] function.toString Karl Dahlke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).