This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.defineProperties = function(O, Properties) { | |
// 1. If Type(O) is not Object throw a TypeError exception. | |
if (typeof(O) !== "object" || O == null) { | |
throw TypeError("Object.defineProperties called on non-object"); | |
} | |
// 2. Let props be ToObject(Properties) | |
var props = Object(Properties); // not *exactly* the same, but similar enough | |
// 3. Let names be an internal list containing the names of each enumerable own property of props. |