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

Fix wrong error handler from compiler in js #2

Open
eljefedelrodeodeljefe opened this issue Jun 20, 2016 · 0 comments
Open

Fix wrong error handler from compiler in js #2

eljefedelrodeodeljefe opened this issue Jun 20, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@eljefedelrodeodeljefe
Copy link
Owner

eljefedelrodeodeljefe commented Jun 20, 2016

test/fixtures/sources/c/file_2.c:3:5: error: redefinition of 'main'
int main(int argc, char const *argv[]) {
    ^
test/fixtures/sources/c/file_2.c:3:5: note: previous definition is here
int main(int argc, char const *argv[]) {
    ^
1 warning and 2 errors generated.
not ok 3 Error: compiler suffered errors
  ---
    operator: fail
    at: pt.compile (/Users/jefe/repos/platform-tools/test/async/c.spec.js:54:11)
  ...
not ok 4 Error: linker suffered errors
  ---
    operator: fail
    at: pt.link (/Users/jefe/repos/platform-tools/test/async/c.spec.js:58:13)
  ...
not ok 5 plan != count
  ---
    operator: fail
    expected: 1
    actual:   2
    at: pt.link (/Users/jefe/repos/platform-tools/test/async/c.spec.js:58:13)
  ...
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant