Export NativeModule
This is used by atom for doing module compile cache. (cherry picked from commit 83b45fddb9a36c1376f7a2b5c70717e37b6f0133)
This commit is contained in:
Родитель
38dba38169
Коммит
b071038e57
|
@ -121,7 +121,7 @@
|
|||
this.loading = false;
|
||||
}
|
||||
|
||||
NativeModule._source = getBinding('natives');
|
||||
NativeModule._source = process.binding('natives');
|
||||
NativeModule._cache = {};
|
||||
|
||||
const config = getBinding('config');
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
EventEmitter.call(process);
|
||||
|
||||
process.NativeModule = NativeModule;
|
||||
|
||||
setupProcessObject();
|
||||
|
||||
// Do this good and early, since it handles errors.
|
||||
|
|
Загрузка…
Ссылка в новой задаче