Skip to content

Instantly share code, notes, and snippets.

@pastak
Created November 16, 2016 11:17
Show Gist options
  • Save pastak/258373c00b8d928ec88a9a7dccd30627 to your computer and use it in GitHub Desktop.
Save pastak/258373c00b8d928ec88a9a7dccd30627 to your computer and use it in GitHub Desktop.
const b = require('./b')
class A {
constructor () {
}
echo () {
console.log(b.hello)
}
lang () {
return 'ja'
}
}
module.exports = A;
const A = require('./a')
class B {
constructor () {
throw new Error('aaa')
}
static get hello () {
const a = new A()
if (a.lang() === 'ja') {
return 'こんにちは〜'
}
return 'hello'
}
}
module.exports = B;
@tyage
Copy link

tyage commented Nov 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment