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

Function ExtendableBuiltin

docs/app/js/sanddance-app.js:69235–69239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69233var _common = require("../../lib/common");
69234function _extendableBuiltin(cls) {
69235 function ExtendableBuiltin() {
69236 var instance = Reflect.construct(cls, Array.from(arguments));
69237 Object.setPrototypeOf(instance, Object.getPrototypeOf(this));
69238 return instance;
69239 }
69240 ExtendableBuiltin.prototype = Object.create(cls.prototype, {
69241 constructor: {
69242 value: cls,

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected