mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
85898e0aca
This is used to allow people to run polyfills. Co-Authored-By: Anna Henningsen <github@addaleax.net> PR-URL: https://github.com/nodejs/node/pull/28940 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
11 lines
212 B
JavaScript
11 lines
212 B
JavaScript
'use strict';
|
|
Object.defineProperty(
|
|
Object.prototype,
|
|
'flatten', {
|
|
enumerable: false,
|
|
// purposefully named something that
|
|
// would never land in JS itself
|
|
value: function smoosh() {}
|
|
}
|
|
);
|