mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
12 lines
381 B
JavaScript
12 lines
381 B
JavaScript
define(["require", "exports", "module", "test","a"], function(require, exports, module) {
|
|
var test = require('test');
|
|
var a = require('a');
|
|
var foo = a.foo;
|
|
test.assert(a.foo() == a, 'calling a module member');
|
|
test.assert(foo() == (function (){return this})(), 'members not implicitly bound');
|
|
a.set(10);
|
|
test.assert(a.get() == 10, 'get and set')
|
|
test.print('DONE', 'info');
|
|
|
|
});
|