MCPcopy Create free account
hub / github.com/microsoft/SandDance / stubRemovedMethods

Function stubRemovedMethods

docs/app/js/sanddance-app.js:61700–61710  ·  view source on GitHub ↗
(instance, className, version, methodNames)

Source from the content-addressed store, hash-verified

61698parcelHelpers.export(exports, "stubRemovedMethods", ()=>stubRemovedMethods);
61699var _gltools = require("@luma.gl/gltools");
61700function stubRemovedMethods(instance, className, version, methodNames) {
61701 var upgradeMessage = "See luma.gl ".concat(version, " Upgrade Guide at https://luma.gl/docs/upgrade-guide");
61702 var prototype = Object.getPrototypeOf(instance);
61703 methodNames.forEach(function(methodName) {
61704 if (prototype.methodName) return;
61705 prototype[methodName] = function() {
61706 (0, _gltools.log).removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
61707 throw new Error(methodName);
61708 };
61709 });
61710}
61711
61712},{"@luma.gl/gltools":"7HW6a","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"bnrUb":[function(require,module,exports) {
61713var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.45
removedMethod · 0.45

Tested by

no test coverage detected