Respond to an unknown method call: Difference between revisions

m
→‎{{header|Kotlin}}: Corrected capitalization of Firefox
(→‎{{header|Kotlin}}: Changed code so that the object itself now captures an attempt to call an unknown method.)
m (→‎{{header|Kotlin}}: Corrected capitalization of Firefox)
Line 591:
 
=={{header|Kotlin}}==
Kotlin JS does not currently target ECMAScript 2015 and so the Proxy object cannot be used for this task. The only way it can currently be accomplished is to use the Mozilla extension __noSuchMethod__ property which works with FireFoxFirefox 43 but is no longer supported by more up to date versions:
<lang scala>// Kotlin JS version 1.2.0 (FireFoxFirefox 43)
 
class C {
9,476

edits