samuel kwok fe258dec04 fix: _interopRequireWildcard should only cache objects (#10574)
* fix: [#10561] _interopRequireWildcard should cache object only

* fix: narrow down cache restriction to object/function type

* test: add interop require null module case
2019-10-19 12:01:38 +02:00

4 lines
85 B
JavaScript

return import("./mod.js").then(({ default: def }) => {
expect(def).toBe(null);
});