You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The following usage of const is causing issues with testing that use PhantomJS with the lastest release of moment. const word = translator.correctGrammaticalCase(number, wordKey);
I see unexpected token 'const' in the console logs when the test are executing.
Was const meant to be added? With this being added it adds new requirements for consuming moments, (maybe some type of polyfilling?) that wasn't there before for a minor version bump.
Can const be removed so that moment remain passive for its current consumers?
The text was updated successfully, but these errors were encountered:
We have the same issue. Recently we updated moment.js from 2.29.1 to 2.29.2 and our jasmine unit/integration tests launched from Chutzpath using PhantomJS have stopped working.
We review changes between versions and the problem is the sentences:
const word = translator$1.correctGrammaticalCase(number, wordKey);
const word = translator$2.correctGrammaticalCase(number, wordKey);
Will would be possible change it for backward compatibility, using "var" instead of "const"? In other way we have must follow using previous moment. js version 2.29.1
Describe the bug
The following usage of const is causing issues with testing that use PhantomJS with the lastest release of moment.
const word = translator.correctGrammaticalCase(number, wordKey);
I see unexpected token 'const' in the console logs when the test are executing.
Was const meant to be added? With this being added it adds new requirements for consuming moments, (maybe some type of polyfilling?) that wasn't there before for a minor version bump.
Can const be removed so that moment remain passive for its current consumers?
The text was updated successfully, but these errors were encountered: