amis-rpc-design/node_modules/core-js/internals/observable-forced.js

15 lines
590 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
'use strict';
var global = require('../internals/global');
var isCallable = require('../internals/is-callable');
var wellKnownSymbol = require('../internals/well-known-symbol');
var $$OBSERVABLE = wellKnownSymbol('observable');
var NativeObservable = global.Observable;
var NativeObservablePrototype = NativeObservable && NativeObservable.prototype;
module.exports = !isCallable(NativeObservable)
|| !isCallable(NativeObservable.from)
|| !isCallable(NativeObservable.of)
|| !isCallable(NativeObservablePrototype.subscribe)
|| !isCallable(NativeObservablePrototype[$$OBSERVABLE]);