4

I need at least such feature atm:

function ExampleClass() {
}

ExampleClass.prototype.__noSuchMethod__ = function() {
  console.log("No such method, maybe you should try reading the docs?");
}

example = new ExampleClass();
example.eatPizza();

Isn't it implemented yet in v8 or anyhow emulated else?

Have anyone implemented such feature on their projects?

Thanks

Somebody
  • 9,316
  • 26
  • 94
  • 142
  • 2
    possible duplicate of [Capture method missing in Javascript and do some logic?](http://stackoverflow.com/questions/8283362/capture-method-missing-in-javascript-and-do-some-logic) – alessioalex Dec 14 '11 at 08:58

1 Answers1

2

There was a similar question on StackOverflow, you can find the answer there:

Capture method missing in Javascript and do some logic?

Community
  • 1
  • 1
alessioalex
  • 62,577
  • 16
  • 155
  • 122