Created
December 19, 2021 20:10
-
-
Save sayrer/2a386a40ef0a607077a4dbd2f8c9a714 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sayrer@sayrers-MacBook-Air% node | |
Welcome to Node.js v17.2.0. | |
Type ".help" for more information. | |
> Object.freeze(Object.prototype); | |
[Object: null prototype] {} | |
> Object.freeze({}.constructor); | |
[Function: Object] | |
> {}.constructor.foo = "bar" | |
'bar' | |
> {}.constructor | |
[Function: Object] | |
> {}.constructor.foo | |
undefined | |
> {}.__proto__.baz = "qux" | |
'qux' | |
> {}.__proto__ | |
[Object: null prototype] {} | |
> {}.__proto__.baz | |
undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment