whalesong/js-assembler/runtime-src/baselib.js

25 lines
346 B
JavaScript

// Skeleton for basic library functions
if (! this['plt']) { this['plt'] = {}; }
(function (plt) {
var baselib = {};
plt['baselib'] = baselib;
// Inheritance.
var heir = function(parentPrototype) {
var f = function() {}
f.prototype = parentPrototype;
return new f();
};
baselib.heir = heir;
})(this['plt']);