Re: cgjs VS cgj + esm progress

2018-02-04 Thread Andrea Giammarchi
Hi Philip, SpiderMonkey already supports ESM indeed, you just need to start the project with a `-m` or `--module=PATH` flag. If GJS would be so kind to pass along such flag when used, developers could arbitrary decide to start GJS as module or not. *Test case* a.js ``` import {cwd} from './b.j

Re: cgjs VS cgj + esm progress

2018-02-04 Thread philip . chimento
Hi Andrea, Thanks for finding that out. This is good news. Unfortunately it's not that simple - I checked and the module loader is not part of SpiderMonkey, it's part of the SpiderMonkey test shell. We don't run that directly, so we can't simply pass the -m flag. However, the good news is that it