mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
16 lines
334 B
JavaScript
16 lines
334 B
JavaScript
|
(function() {
|
||
|
/**
|
||
|
* @class Person
|
||
|
*/
|
||
|
function Person(name) {}
|
||
|
|
||
|
Person.prototype = Object.create(null, /** @lends Person.prototype */ {
|
||
|
/** Speak a message. */
|
||
|
say: function(message) {
|
||
|
return this.name + " says: " + message;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
this.Person = Person;
|
||
|
}).call(this);
|