mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
19 lines
459 B
JavaScript
19 lines
459 B
JavaScript
define(["require", "exports", "module", "system"], function(require, exports, module) {
|
|
|
|
exports.print = typeof print !== "undefined" ? print : function () {
|
|
var system = require("system");
|
|
var stdio = system.stdio;
|
|
stdio.print.apply(stdio, arguments);
|
|
};
|
|
|
|
exports.assert = function (guard, message) {
|
|
if (guard) {
|
|
exports.print('PASS ' + message, 'pass');
|
|
} else {
|
|
exports.print('FAIL ' + message, 'fail');
|
|
}
|
|
};
|
|
|
|
|
|
});
|