From: Kevin Carhart <kevin@carhart.net>
To: edbrowse-dev@lists.the-brannons.com
Subject: [edbrowse-dev] window.location.search and String.search
Date: Sat, 1 Jun 2019 17:42:12 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.21.1906011728490.172820@carhart.net> (raw)
Thanks for the clarification!
This is very fun. I think I already used breakpoint and snapshot to raise
something in particular. Since the homepage of baseball is appearing, I
tried to load the Players, and I got an error around here:
xf = /#|$/;
yf = function (a, b) {
var c = a.search(xf);
Thanks to the breakpoint I was able to echo local 'a' and 'b' !
'a' is an object and is definitely window.location. You can tell by its
member names.
b is a string. xf is a regular expression.
So look what it does next. It seems like we have a collision between
location.search and String.search(//). When it tries to a.search(xf), it
crashes:
TypeError: '' not callable (property 'search' of [object Object])
Karl, you talk about this at line 701 in startwindow.
/*
Can't turn URL.search into String.search, because search is already a
property
of URL, that is, the search portion of the URL.
mw0.URL.prototype.search = function(s) {
return this.toString().search(s);
}
*/
Can the getter handle both things by differentiating on whether or not
anything was sent in?
next reply other threads:[~2019-06-02 0:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-02 0:42 Kevin Carhart [this message]
2019-06-02 6:43 ` Karl Dahlke
2019-06-02 7:10 ` Kevin Carhart
2019-06-02 12:50 ` Karl Dahlke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.1906011728490.172820@carhart.net \
--to=kevin@carhart.net \
--cc=edbrowse-dev@lists.the-brannons.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).