Skip to content

The properties that are added with .extend should be enumerable #1

Description

@3rd-Eden

Currently when you extend a function and add new properties, these properties will not be enumerable by default.

function Foo() {}
Foo.extend = require('extendible');

var Bar = Foo.extend({
  hello: 'world'
});

var bar = new Bar();
console.log(Object.keys(bar)); // expecting `hello` to be in the array here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions