From 0d62e34e52c6f91e3c4f557b8df01e7b0484f98e Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Tue, 5 Jun 2012 05:00:30 -0500 Subject: [PATCH] Document `Object.keys` as a polyfill. --- src/prototype/lang/object.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/prototype/lang/object.js b/src/prototype/lang/object.js index 6f8780cae..e59d9eb69 100644 --- a/src/prototype/lang/object.js +++ b/src/prototype/lang/object.js @@ -313,6 +313,12 @@ * prescribe an enumeration order. Sort the resulting array if you wish to * normalize the order of the object keys. * + * `Object.keys` acts as an ECMAScript 5 [polyfill](http://remysharp.com/2010/10/08/what-is-a-polyfill/). + * It is only defined if not already present in the user's browser, and it + * is meant to behave like the native version as much as possible. Consult + * the [ES5 specification](http://es5.github.com/#x15.2.3.14) for more + * information. + * * ##### Examples * * Object.keys();