MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / initializer

Function initializer

lib/json-viewer.bundle.js:29–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 * SPDX-License-Identifier: BSD-3-Clause
28 */
29const et=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function st(t){return(i,e)=>void 0!==e?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,e):et(t,i)
30/**
31 * @license
32 * Copyright 2017 Google LLC

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected