We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7369879 commit 4c16c2bCopy full SHA for 4c16c2b
src/error/GraphQLError.js
@@ -108,8 +108,9 @@ export function GraphQLError( // eslint-disable-line no-redeclare
108
}
109
110
let _locations;
111
- if (_source && _positions) {
112
- _locations = _positions.map(pos => getLocation(_source, pos));
+ const _source2 = _source; // seems here Flow need a const to resolve type.
+ if (_source2 && _positions) {
113
+ _locations = _positions.map(pos => getLocation(_source2, pos));
114
115
116
Object.defineProperties(this, {
src/language/index.js
@@ -1,4 +1,4 @@
1
-/**
+/** @flow
2
* Copyright (c) 2015, Facebook, Inc.
3
* All rights reserved.
4
*
0 commit comments