WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
72875
remove deprecated -f option of jsc shell
https://bugs.webkit.org/show_bug.cgi?id=72875
Summary
remove deprecated -f option of jsc shell
Andy Wingo
Reported
2011-11-21 06:16:11 PST
If you run jsc --help, you will see that there is a -f option that is marked as deprecated. It was marked as deprecated in 2008 and there are no uses in the current tree. The patch to be attached removes this option.
Attachments
Patch
(2.01 KB, patch)
2011-11-21 06:18 PST
,
Andy Wingo
no flags
Details
Formatted Diff
Diff
Patch
(3.08 KB, patch)
2011-11-24 04:48 PST
,
Andy Wingo
no flags
Details
Formatted Diff
Diff
Patch
(2.70 KB, patch)
2012-01-16 08:20 PST
,
Andy Wingo
eric
: review+
wingo
: commit-queue?
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andy Wingo
Comment 1
2011-11-21 06:18:04 PST
Created
attachment 116074
[details]
Patch
Mark Rowe (bdash)
Comment 2
2011-11-21 12:30:37 PST
Comment on
attachment 116074
[details]
Patch The “unused” -f argument is passed to jsc by the Mozilla JS test harness used in run-javascriptcore-tests.
Andy Wingo
Comment 3
2011-11-21 13:28:22 PST
So... should we fix the harness, undeprecate the command-line argument, or add a comment and leave things as they are?
Alexey Proskuryakov
Comment 4
2011-11-21 16:01:06 PST
Also, this option is part of documented functionality on Mac OS X (jsc --help lists it).
Andy Wingo
Comment 5
2011-11-22 01:04:22 PST
Alexey, as I noted in the original report, it has been marked in --help as deprecated since 2008. Surely that is sufficient warning, unless it was never intended to be removed.
Andy Wingo
Comment 6
2011-11-24 04:48:51 PST
Created
attachment 116499
[details]
Patch
Andy Wingo
Comment 7
2011-11-24 04:50:22 PST
Comment on
attachment 116499
[details]
Patch How about this one, that also fixes jsDriver.pl ?
Alexey Proskuryakov
Comment 8
2011-11-24 11:59:54 PST
To reviewers: please don't r+ this unless you know that you have the authority to remove documented features from shipping Apple products.
Andy Wingo
Comment 9
2011-11-25 01:51:34 PST
(In reply to
comment #8
)
> To reviewers: please don't r+ this unless you know that you have the authority to remove documented features from shipping Apple products.
What is the next positive step to take here, Alexey? Wrap this block in an #if PLATFORM(MAC)? Does mrowe have this authority or do I need to find someone else? Close as invalid?
Alexey Proskuryakov
Comment 10
2011-11-25 11:10:33 PST
Apple folks CC'ed on this bug can make the decision, possibly consulting someone else. Many of them are traveling this week, and may not have seen the patch yet. Wrapping this in #if PLATFORM(MAC) doesn't seem great. Every platform specific code path has costs such as being unable to see if you patch breaks other platforms, more difficulty following the logic and such.
Andy Wingo
Comment 11
2012-01-10 07:05:35 PST
Can someone from Apple take a look at this small patch, please? Thanks :-) Andy
Geoffrey Garen
Comment 12
2012-01-10 12:16:37 PST
jsc is an internal testing tool, not Mac OS X API. You can remove -f -- as long as you keep run-javascriptcore-tests working (probably by fixing jsDriver.pl). You can add and remove features, as dictated by development needs. If being present on the filesystem @ /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/ presents something as API, then neither jsc nor testapi.js should be present there -- that's a separate bug.
Mark Rowe (bdash)
Comment 13
2012-01-10 12:39:38 PST
Comment on
attachment 116499
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116499&action=review
> Source/JavaScriptCore/tests/mozilla/jsDriver.pl:17 > +# Copyright (C) 1997-1999, 2011 Netscape Communications Corporation. All
Unless you work for Netscape Communications Corporation, this change isn't appropriate.
Mark Rowe (bdash)
Comment 14
2012-01-10 12:42:46 PST
(In reply to
comment #12
)
> If being present on the filesystem @ /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/ presents something as API, then neither jsc nor testapi.js should be present there -- that's a separate bug.
testapi.js isn't, and should never have been, installed there. As you mention, jsc is installed there for testing purposes.
Geoffrey Garen
Comment 15
2012-01-10 14:39:35 PST
> testapi.js isn't, and should never have been, installed there.
Right.
> As you mention, jsc is installed there for testing purposes.
Sort of. It's for our testing purposes, yes. But Alexey seems to think the location we've chosen accidentally presents our testing helper as API. If so, we should move it.
Mark Rowe (bdash)
Comment 16
2012-01-10 14:47:10 PST
It doesn't.
Alexey Proskuryakov
Comment 17
2012-01-11 11:04:34 PST
> Sort of. It's for our testing purposes, yes. But Alexey seems to think the location we've chosen accidentally presents our testing helper as API. If so, we should move it.
A quick Web search for "jsc javascriptcore" demonstrates that people already use it, and teach others how to use it. I don't have an opinion on whether is OK to break those who use it by deleting it. Perhaps reading the found articles would be informative.
Andy Wingo
Comment 18
2012-01-16 08:16:22 PST
(In reply to
comment #17
)
> > Sort of. It's for our testing purposes, yes. But Alexey seems to think the location we've chosen accidentally presents our testing helper as API. If so, we should move it. > > A quick Web search for "jsc javascriptcore" demonstrates that people already use it, and teach others how to use it. > > I don't have an opinion on whether is OK to break those who use it by deleting it. Perhaps reading the found articles would be informative.
I read the first 20 articles, and none of them use -f.
Andy Wingo
Comment 19
2012-01-16 08:20:45 PST
Created
attachment 122640
[details]
Patch
Andy Wingo
Comment 20
2012-01-16 08:22:17 PST
The newest patch fixes the copyright header. Mark, r?
Eric Seidel (no email)
Comment 21
2012-02-10 10:23:00 PST
Comment on
attachment 122640
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=122640&action=review
Based on
comment 12
and
comment 18
, this patch seems to satisfy the requests of the reviewers.
> Source/JavaScriptCore/tests/mozilla/jsDriver.pl:152 > + my $file_param = " ";
Why is this variable still needed if it's empty? Just trying to change the harness as little as possible?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug