-
Notifications
You must be signed in to change notification settings - Fork 97
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
[fixed] Strict mode error #29
Conversation
Function declarations inside blocks is an error in strict mode. Certain versions of V8 actually notice this and throw an error.
Based on these two fixes, I think that tests are not running at all... |
e8e488a
to
c4b9628
Compare
c4b9628
to
a0e9196
Compare
Seems happier now, thanks! Now I'm getting this which is probably unrelated - don't know where this
https://github.com/contentful/contentful-management.js/blob/master/example/clone-space.js#L73 |
It would come from Bluebird which we aren't using anymore. |
In any case it's the
|
The tests weren't verifying return values of the rate-limited functions. Turns out that return values were being swallowed.
@@ -193,6 +196,9 @@ function clone (sourceSpace, destinationSpace) { | |||
}); | |||
} | |||
|
|||
function tap$ (fn) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that can be removed
On 2 Sep 2015 12:26 pm, "Sascha Depold" notifications@github.com wrote:
In example/clone-space.js
#29 (comment)
:@@ -193,6 +196,9 @@ function clone (sourceSpace, destinationSpace) {
});
}+function tap$ (fn) {
not needed I guess?
—
Reply to this email directly or view it on GitHub
https://github.com/contentful/contentful-management.js/pull/29/files#r38517615
.
Replaced a couple of Bluebird helpers with inline code.
c6c9439
to
5e21191
Compare
The CI config for testem was only running buster-test for Node testing. Unfortunately, that arrangement masks errors in the test setup, so that you get green builds even when the tests fail to start.
1e47bff
to
763535c
Compare
The last test run was an actual test run. There are still some issues with the test running (builds may not fail correctly) so be careful when merging PRs in the future. |
…ration [fixed] Strict mode error
Function declarations inside blocks is an error in strict mode. Certain versions of V8 actually notice this and throw an error.
/cc @elblivion