RESOLVED FIXED 19119
Some objects in the global scope are not completed
https://bugs.webkit.org/show_bug.cgi?id=19119
Summary Some objects in the global scope are not completed
Anthony Ricaud
Reported 2008-05-18 20:27:44 PDT
String, Date and maybe other objects are not completed in the Console. Image is completed though.
Attachments
Proposed patch (2.95 KB, patch)
2010-01-13 07:59 PST, Kent Hansen
no flags
Joseph Pecoraro
Comment 1 2009-07-27 09:49:57 PDT
This looks like a good place to start: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects The list of globals that don't appear in the console's autocompletion: var globals = ["Array", "Boolean", "Date", "Error", "Function", "Math", "Number", "Object", "RegExp", "String"] Note that the following "Error" globals did appear: EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError
Keishi Hattori
Comment 2 2009-07-27 09:55:36 PDT
Basically all the {DontEnum} attributes don't come up as completion candidates. Which is quite a lot ... You can grep for "DontEnum" to find a lot of them. Examples: String Date String.charAt String.substring Math.power document.toString ...
Kent Hansen
Comment 3 2010-01-13 07:59:08 PST
Created attachment 46464 [details] Proposed patch
Kent Hansen
Comment 4 2010-01-13 08:04:35 PST
There doesn't appear to be any tests for auto-completion. If anyone has ideas for going about writing one (that doesn't involve manual/simulated input events and works cross-platform :) ), I'm all ears.
WebKit Commit Bot
Comment 5 2010-01-13 10:14:23 PST
Comment on attachment 46464 [details] Proposed patch Clearing flags on attachment: 46464 Committed r53192: <http://trac.webkit.org/changeset/53192>
WebKit Commit Bot
Comment 6 2010-01-13 10:14:28 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.