Created
November 12, 2017 20:02
-
-
Save gskachkov/df0c91ea951f5f7ae95ab9afd5343e9a 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
var proxy = new Proxy({}, { | |
ownKeys: function () { | |
return [ null ]; | |
} | |
}); | |
Object.keys(proxy); // TypeError: null is not a valid property name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment