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