2010-12-05 07:20:34 +08:00
|
|
|
var common = require('../common');
|
|
|
|
var assert = require('assert');
|
2009-09-30 01:28:54 +08:00
|
|
|
|
2010-12-05 07:20:34 +08:00
|
|
|
var a;
|
2009-09-30 01:28:54 +08:00
|
|
|
setTimeout(function () {
|
2010-02-25 14:36:17 +08:00
|
|
|
a = require("../fixtures/a");
|
2009-09-30 01:28:54 +08:00
|
|
|
}, 50);
|
|
|
|
|
|
|
|
process.addListener("exit", function () {
|
2009-11-29 01:26:59 +08:00
|
|
|
assert.equal(true, "A" in a);
|
|
|
|
assert.equal("A", a.A());
|
|
|
|
assert.equal("D", a.D());
|
2009-09-30 01:28:54 +08:00
|
|
|
});
|