Skip to content

Conversation

@K-Leon
Copy link
Contributor

@K-Leon K-Leon commented Jun 23, 2016

Changed const to let, to dodge the following issue:

"errorMessage" is read-only
203 | const errorMessage = Callback with id ${cbID}: ${module}.${method}() not found;
204 | if (method) {

205 | errorMessage = The callback ${method}() exists in module ${module},
| ^
206 | + but only one callback may be registered to a function in a native module.;
207 | }

Changed const to let, to dodge the following issue:

"errorMessage" is read-only
  203 |         const errorMessage = `Callback with id ${cbID}: ${module}.${method}() not found`;
  204 |         if (method) {
> 205 |           errorMessage = `The callback ${method}() exists in module ${module}, `
      |           ^
  206 |           + `but only one callback may be registered to a function in a native module.`;
  207 |         }
@ghost
Copy link

ghost commented Jun 23, 2016

By analyzing the blame information on this pull request, we identified @javache and @lexs to be potential reviewers.

@ghost
Copy link

ghost commented Jun 23, 2016

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@K-Leon
Copy link
Contributor Author

K-Leon commented Jun 23, 2016

cla just signed.

@ghost
Copy link

ghost commented Jun 23, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 23, 2016
@javache
Copy link
Member

javache commented Jun 23, 2016

Good catch!

@javache
Copy link
Member

javache commented Jun 23, 2016

@facebook-github-bot shipit

@ghost ghost added GH Review: accepted Import Started This pull request has been imported. This does not imply the PR has been approved. and removed GH Review: review-needed labels Jun 23, 2016
@ghost
Copy link

ghost commented Jun 23, 2016

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in 57d85f1 Jun 23, 2016
bubblesunyum pushed a commit to iodine/react-native that referenced this pull request Aug 23, 2016
Summary:
Changed const to let, to dodge the following issue:

> "errorMessage" is read-only
>   203 |         const errorMessage = `Callback with id ${cbID}: ${module}.${method}() not found`;
>   204 |         if (method) {
> > 205 |           errorMessage = `The callback ${method}() exists in module ${module}, `
>       |           ^
>   206 |           + `but only one callback may be registered to a function in a native module.`;
>   207 |         }
Closes facebook#8347

Differential Revision: D3475525

Pulled By: javache

fbshipit-source-id: e03b3b3411606e6798dc42c785f847c2eda03b0c
mpretty-cyro pushed a commit to HomePass/react-native that referenced this pull request Aug 25, 2016
Summary:
Changed const to let, to dodge the following issue:

> "errorMessage" is read-only
>   203 |         const errorMessage = `Callback with id ${cbID}: ${module}.${method}() not found`;
>   204 |         if (method) {
> > 205 |           errorMessage = `The callback ${method}() exists in module ${module}, `
>       |           ^
>   206 |           + `but only one callback may be registered to a function in a native module.`;
>   207 |         }
Closes facebook#8347

Differential Revision: D3475525

Pulled By: javache

fbshipit-source-id: e03b3b3411606e6798dc42c785f847c2eda03b0c
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants