Skip to content

Instantly share code, notes, and snippets.

@shikumiya-hata
Created October 21, 2020 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikumiya-hata/66121fdeb11a03a9668bba1c80a0ae30 to your computer and use it in GitHub Desktop.
Save shikumiya-hata/66121fdeb11a03a9668bba1c80a0ae30 to your computer and use it in GitHub Desktop.
function myFunction() {
const foo = new (Lib.foo())() // 「Foo#constructor()」が出力される
foo.hoge() // 「Foo#hoge()」が出力される
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment