question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JS language module tests failing

See original GitHub issue

The language module tests are failing in JS.

test.js.quick:
[ceylon-run-js] ** Running Language Module Tests **
[ceylon-run-js] Equality
[ceylon-run-js] Comparable
[ceylon-run-js] Clones
[ceylon-run-js] Booleans
[ceylon-run-js] Numbers
[ceylon-run-js] Testing 53-bit integers
[ceylon-run-js] 33-bit shift tests disabled for JS
[ceylon-run-js] Bytes
[ceylon-run-js] Characters
[ceylon-run-js] Strings
[ceylon-run-js] /Users/gavin/ceylon/language/build/test-repo/ceylon/language/1.3.3-SNAPSHOT/ceylon.language-1.3.3-SNAPSHOT.js:3514
[ceylon-run-js] do {--to} while (to>=0 && chars(this.$_get(to)));
[ceylon-run-js]                           ^
[ceylon-run-js] 
[ceylon-run-js] TypeError: chars is not a function
[ceylon-run-js]     at String.string$.trimTrailing (/Users/gavin/ceylon/language/build/test-repo/ceylon/language/1.3.3-SNAPSHOT/ceylon.language-1.3.3-SNAPSHOT.js:3514:27)
[ceylon-run-js]     at c6 (/Users/gavin/ceylon/language/build/test-repo/ceylon/language/1.3.3-SNAPSHOT/ceylon.language-1.3.3-SNAPSHOT.js:820:10)
[ceylon-run-js]     at cons.next (/Users/gavin/ceylon/language/build/test-repo/ceylon/language/1.3.3-SNAPSHOT/ceylon.language-1.3.3-SNAPSHOT.js:1408:67)
[ceylon-run-js]     at strings (/Users/gavin/ceylon/language/build/test/default/default.js:12059:23)
[ceylon-run-js]     at runTests (/Users/gavin/ceylon/language/build/test/default/default.js:9866:1)
[ceylon-run-js]     at runAndAssert (/Users/gavin/ceylon/language/build/test/default/default.js:9942:1)
[ceylon-run-js]     at [eval]:1:477
[ceylon-run-js]     at ContextifyScript.Script.runInThisContext (vm.js:23:33)
[ceylon-run-js]     at Object.runInThisContext (vm.js:95:38)
[ceylon-run-js]     at Object.<anonymous> ([eval]-wrapper:6:22)
[ceylon-run-js] ceylon run-js: Node process exited with non-zero exit code: 1

@chochos would you please help me out with this one?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:32 (32 by maintainers)

github_iconTop GitHub Comments

1reaction
FroMagecommented, May 24, 2017

Like #1533 or #1466. Looks like invocation.isUnknownArguments() should tell us if this is a runtime-spread (the term we decided on in the end).

0reactions
gavinkingcommented, Jun 21, 2017

OK, then we can close this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts-jest fails to run a tsx test file because of "Import" from a ...
1 Answer 1 ... The problem is that Jest is not transforming that file. And in plain JS, import is not valid. You...
Read more >
How to Start Unit Testing Your JavaScript Code - freeCodeCamp
Once you save the file, Jest will inform you that the test failed. That helps you discover potential issues even before committing your...
Read more >
Unit Testing in JavaScript: A Tutorial | BrowserStack
If a unit test fails, then in the vast majority of cases testers can be sure that the specific function being tested is...
Read more >
Testing Error Handling in node.js | by Lars Trieloff
Now, external REST APIs are not the only way our functions under test are importing behavior that is prone to failure (but not...
Read more >
Handling common JavaScript problems - MDN Web Docs
Now we'll look at common cross-browser JavaScript problems and how to fix ... Familiarity with the core HTML, CSS, and JavaScript languages; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found