Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular.copy throws error if source don't have Object prototype  #10114

Closed
@mohsen1

Description

@mohsen1

In Angular 1.3.2 following throws an error:

var o = Object.create(null)
o.name = "my obj";
angular.copy(o);

Error thrown:

Uncaught TypeError: undefined is not a functionmessage: "undefined is not a function"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error

Line of code related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions