mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +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);
|