parent
09b47d3348
commit
032757a6e5
|
@ -122,8 +122,10 @@ require('./extensions')(realmConstructor);
|
||||||
if (realmConstructor.Sync) {
|
if (realmConstructor.Sync) {
|
||||||
if (getContext() === 'nodejs') {
|
if (getContext() === 'nodejs') {
|
||||||
nodeRequire('./notifier')(realmConstructor);
|
nodeRequire('./notifier')(realmConstructor);
|
||||||
|
if (!realmConstructor.Worker) {
|
||||||
Object.defineProperty(realmConstructor, 'Worker', {value: nodeRequire('./worker')});
|
Object.defineProperty(realmConstructor, 'Worker', {value: nodeRequire('./worker')});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = realmConstructor;
|
module.exports = realmConstructor;
|
||||||
|
|
Loading…
Reference in New Issue