2
0

Hello.js 482 B

123456789101112131415161718
  1. smalltalk.addClass('Hello', smalltalk.Object, [], 'Hello');
  2. smalltalk.addMethod(
  3. '_main',
  4. smalltalk.method({
  5. selector: 'main',
  6. category: 'main',
  7. fn: function (){
  8. var self=this;
  9. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", ["Hello world from JTalk in Node.js"]);
  10. return self;},
  11. source: unescape('main%0A%09console%20log%3A%20%27Hello%20world%20from%20JTalk%20in%20Node.js%27'),
  12. messageSends: ["log:"],
  13. referencedClasses: []
  14. }),
  15. smalltalk.Hello.klass);