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

Reject polyfill and createPromiseCapability #4700

Merged
merged 1 commit into from
Apr 29, 2014

Conversation

pramodhkp
Copy link
Contributor

No description provided.

@@ -992,6 +1007,11 @@ var LegacyPromise = PDFJS.LegacyPromise = (function LegacyPromiseClosure() {
return new globalScope.Promise(function (resolve) { resolve(x); });
};
}
if (typeof globalScope.Promise.reject !== 'function') {
globalScope.Promise.reject = function (x) {
return new globalScope.Promise(function (reject) { reject(x); });
Copy link
Contributor

Choose a reason for hiding this comment

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

function (resolve, reject) { reject(x); }

@yurydelendik
Copy link
Contributor

Looks good with the lint errors fixes.

@pramodhkp
Copy link
Contributor Author

Have fixed lint errors and changed x to reason for reject and value for resolve.


/**
* Creates rejected promise
* @param reason reason value
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldn't @param reason rejection value be a better comment here?

@yurydelendik
Copy link
Contributor

/botio-linux preview

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/99b860041e7fc9e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/dccc229569b41bf/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/dccc229569b41bf/output.txt

Total script time: 22.15 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

yurydelendik added a commit that referenced this pull request Apr 29, 2014
Reject polyfill and createPromiseCapability
@yurydelendik yurydelendik merged commit 8e517b6 into mozilla:master Apr 29, 2014
@yurydelendik
Copy link
Contributor

Thank you for the patch

@pramodhkp
Copy link
Contributor Author

Thanks for merging!

On Tue, Apr 29, 2014 at 7:39 PM, Yury Delendik notifications@github.comwrote:

Thank you for the patch


Reply to this email directly or view it on GitHubhttps://github.com//pull/4700#issuecomment-41680043
.

@pramodhkp pramodhkp deleted the refactoring branch April 29, 2014 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants