Skip to content

Instantly share code, notes, and snippets.

@AlexJWayne
Created March 14, 2013 00:09
Show Gist options
  • Select an option

  • Save AlexJWayne/5157705 to your computer and use it in GitHub Desktop.

Select an option

Save AlexJWayne/5157705 to your computer and use it in GitHub Desktop.
> Counter
function Counter() { [native code] }
> Counter()
TypeError: Illegal constructor
> c = new Counter()
TypeError: Illegal constructor
> Counter(1)
TypeError: Illegal constructor
> Counter.call()
TypeError: Object function Counter() { [native code] } has no method 'call'
// wtf?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment