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

Add a Node platform. #663

Merged
merged 2 commits into from
Jul 7, 2017
Merged

Add a Node platform. #663

merged 2 commits into from
Jul 7, 2017

Conversation

nex3
Copy link
Member

@nex3 nex3 commented Jul 6, 2017

No description provided.

@natebosch
Copy link
Member

Could we add more details to the commit message?

@nex3
Copy link
Member Author

nex3 commented Jul 6, 2017

Sure! What are you looking for in particular?

@natebosch
Copy link
Member

Mainly hoping for a breakdown of what are changes to existing extension points to support this vs the pieces that would go in for any new platform.

@nex3
Copy link
Member Author

nex3 commented Jul 6, 2017

Done.

This also makes CompilerPool more general, so it can be used by both
the node and the browser platforms.
Copy link
Contributor

@efortuna efortuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, whew! :-)

Future<Pair<Process, StackTraceMapper>> _spawnProcess(
String path, SuiteConfiguration suiteConfig) async {
var dir = new Directory(_compiledDir).createTempSync('test_').path;
var jsPath = p.join(dir, p.basename(path) + ".node_test.dart.js");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consistent use of single quote here with rest of file.


throw new LoadException(
suitePath,
"Error getting $url: ${response.statusCode} "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using single quotes here and below

} on IOException catch (error) {
var message = getErrorMessage(error);
if (error is SocketException) {
message = "${error.osError.message} "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay I'm going to stop posting about this quote thing, but check out other places in these files that it's happening.

@nex3
Copy link
Member Author

nex3 commented Jul 7, 2017

I think the styleguide intentionally doesn't provide guidance on string quotes, because keeping them consistent is a lot of overhead for little benefit. This package certainly doesn't strive for consistency in general. I'd prefer to leave them as-is.

@nex3 nex3 merged commit 4d2e664 into master Jul 7, 2017
@nex3 nex3 deleted the node branch July 7, 2017 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants