Created
August 30, 2022 16:53
-
-
Save kant2002/bb1417b076335c0584451139afeee5aa to your computer and use it in GitHub Desktop.
Mokey Patching some REAL CODEZZ
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
import x from "./module.mjs"; | |
import "./second.mjs"; | |
x.log(); |
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
export default class T { | |
static log() { | |
console.log("T: log()"); | |
} | |
} |
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
import x from "./module.mjs"; | |
x.log = function () { | |
console.log("override"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment