Skip to content

Trait can't deal with global getters on Object.prototype #18

@GoogleCodeExporter

Description

@GoogleCodeExporter
Bug : http://jsfiddle.net/jkegJ/2/

Related github issue : https://github.com/nrstott/traits.js/pull/1

It would appear that getter/setter's on Object.prototype are broken when using 

`map[name] = pd` 

at 

http://code.google.com/p/es-lab/source/browse/trunk/src/traits/traits.js#272

Replacing it with a `defineProperty` call on `map` makes the bug dissapear.

Original issue reported on code.google.com by Raynos2@gmail.com on 21 Aug 2011 at 3:45

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions