Closed
Bug 300534
Opened 20 years ago
Closed 20 years ago
Internal Narcissus functions showing up in objects' prototypes
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mrbkap, Assigned: mrbkap)
Details
Attachments
(1 file)
|
4.04 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
There are a few functions that we use internally in the implementation that need
to be __defineProperty__'d to be non-enumerable.
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #189114 -
Flags: review?(brendan)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 2•20 years ago
|
||
Comment on attachment 189114 [details] [diff] [review]
Make the functions non-enumerable
>+Array.prototype.__defineProperty__('top', function () {
>+ return this.length && this[this.length-1];
>+ }, false, false, true);
Looks great, only comment is to indent this the same way you indented the
earlier ones: one basic offset for the body statement, 0 for the closing brace
and trailing args to __defineProperty__. Alternative:
Array.prototype.__defineProperty__('top',
function () {
return this.length && this[this.length-1];
},
false, false, true);
or even:
Array.prototype.__defineProperty__(
'top',
function () {
return this.length && this[this.length-1];
},
false, false, true
);
/be
Attachment #189114 -
Flags: review?(brendan) → review+
| Assignee | ||
Comment 3•20 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: narcissus
Resolution: --- → FIXED
Summary: Narcissus: Internal Narcissus functions showing up in objects' prototypes → Internal Narcissus functions showing up in objects' prototypes
You need to log in
before you can comment on or make changes to this bug.
Description
•