Skip to content

_.extend should work-around JScript's DontEnum bug #60

@timmolendijk

Description

@timmolendijk

See: https://developer.mozilla.org/en/ECMAScript_DontEnum_attribute#JScript_DontEnum_Bug

This should evaluate to true:
_.extend({}, {a: 1, toString: 'x'}).toString === 'x'

But in IE (I tested version 8) it evaluates to false.

I suggest a patch along these lines: https://prototype.lighthouseapp.com/projects/8886/tickets/23-object-keys-object-values-dontenum-ie-fix

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions