node/test/fixtures/intrinsic-mutation.js
Bradley Farias 85898e0aca bootstrap: run preload prior to frozen-intrinsics
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>
2019-08-20 09:49:48 -05:00

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() {}
}
);