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.
2 parents 96b8dcc + a2d4864 commit 2cc660cCopy full SHA for 2cc660c
src/Observable.js
@@ -4,7 +4,7 @@ const hasSymbols = () => typeof Symbol === 'function';
4
const hasSymbol = name => hasSymbols() && Boolean(Symbol[name]);
5
const getSymbol = name => hasSymbol(name) ? Symbol[name] : '@@' + name;
6
7
-if (hasSymbols() && !hasSymbol('observable')) {
+if (hasSymbols() && !hasSymbol('observable') && Object.isExtensible(Symbol)) {
8
Symbol.observable = Symbol('observable');
9
}
10
0 commit comments