Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConsoleAgent passes the path first, which doesn't work with node #31

Closed
ljharb opened this issue Jul 27, 2017 · 8 comments
Closed

ConsoleAgent passes the path first, which doesn't work with node #31

ljharb opened this issue Jul 27, 2017 · 8 comments

Comments

@ljharb
Copy link
Member

ljharb commented Jul 27, 2017

When I try to run my finally tests with test262-harness, passing --hostArgs='--harmony_promise_finally' fails. However, when I edit this line in ConsoleAgent to be args = this.args.concat(args), it passes.

In other words, I think the tempfile path needs to be the last argument passed, at least in node.

@rwaldron
Copy link
Contributor

See also: tc39/test262#1156 (comment)

I have a patch written for this, I'm just working out some testing details with @jugglinmike

@bterlson
Copy link
Member

I think I also fixed this in the modules branch, fwiw: 6feab85#diff-bdbdfde5f543e4aca41ea83a7b18a3d9R17 (and related functionality).

@rwaldron
Copy link
Contributor

My patch is super simple...

(in agents/node.js)

class NodeAgent extends ConsoleAgent {
  createChildProcess(args) {
    return cp.spawn(this.hostPath, this.args.concat(args || []));
  }

@rwaldron
Copy link
Contributor

This issue also affects:

  • chakra
  • d8 (obviously)
  • jsc
  • jsshell

rwaldron added a commit to rwaldron/eshost that referenced this issue Jul 28, 2017
@bterlson
Copy link
Member

bterlson commented Aug 9, 2017

@rwaldron this issue is resolved right? I guess "fixes gh-31" doesn't auto-close #31.

@ljharb
Copy link
Member Author

ljharb commented Aug 9, 2017

@bterlson #34 isn't merged yet; it will auto-close once it hits master.

@bterlson
Copy link
Member

bterlson commented Aug 9, 2017

@ljharb ahh right, thanks. Guess that's blocked on making the tests pass.

@rwaldron
Copy link
Contributor

Yep, I'm tracking all of this on my end. I just resolved the ChakraCore --debug build requirement, waiting on CI.

bterlson added a commit that referenced this issue Aug 10, 2017
Correction to order of host args passed to cp.spawn. Fixes gh-31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants