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
Description
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