web-apps/vendor/requirejs/tests/commonjs/tests/modules/1.0/test.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

19 lines
418 B
JavaScript

define(["require", "exports", "module", "system"], function(require, exports, module) {
exports.print = function () {
var system = require("system");
var stdio = system.stdio;
stdio.print.apply(stdio, arguments);
};
exports.assert = function (guard, message) {
if (guard) {
console.log('PASS ' + message, 'pass');
} else {
console.error('FAIL ' + message, 'fail');
}
};
});