Lines Matching refs:SourceTextModule
423 // Create a Module by constructing a new `vm.SourceTextModule` object. This
431 const bar = new vm.SourceTextModule(`
462 return new vm.SourceTextModule(`
495 // Create a Module by constructing a new `vm.SourceTextModule` object. This
503 const bar = new vm.SourceTextModule(`
534 return new vm.SourceTextModule(`
709 ## Class: `vm.SourceTextModule`
722 The `vm.SourceTextModule` class provides the [Source Text Module Record][] as
725 ### `new vm.SourceTextModule(code[, options])` argument
757 * `module` {vm.SourceTextModule}
770 Creates a new `SourceTextModule` instance.
781 const module = new vm.SourceTextModule(
808 const module = new vm.SourceTextModule(
841 Creates a code cache that can be used with the `SourceTextModule` constructor's
845 The code cache of the `SourceTextModule` doesn't contain any JavaScript
847 source and used to construct new `SourceTextModule` instances multiple times.
849 Functions in the `SourceTextModule` source can be marked as lazily compiled
850 and they are not compiled at construction of the `SourceTextModule`. These
853 `SourceTextModule` that it can use to speed up future compilations.
857 const module = new vm.SourceTextModule('const a = 1;');
863 const module2 = new vm.SourceTextModule('const a = 1;', { cachedData });