git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit c326c8af2a729760e833b861163acade71770ff5

don't create imports of there is no code

wanderer committed on 11/5/2016, 11:30:23 AM
Parent: 277b81fa0326007d061917f6ea1efa15f8ad5392

Files changed

index.jschanged
index.jsView
@@ -8,12 +8,14 @@
88 constructor (opts = {}) {
99 this.state = opts.state || new Vertex()
1010 this.parent = opts.parent
1111
12+ // if code is bound to this kernel then create the interfaceAPI and the
13+ // imports
1214 if (opts.code) {
1315 this.interfaceAPI = new InterfaceAPI(opts.code)
16+ this.imports = this.buildImports(opts.interfaces)
1417 }
15- this.imports = this.buildImports(opts.interfaces)
1618 }
1719
1820 /**
1921 * Builds a import map with an array of given interfaces

Built with git-ssb-web