MCPcopy Create free account
hub / github.com/dynjs/dynjs / DynArray

Method DynArray

src/main/java/org/dynjs/runtime/DynArray.java:22–28  ·  view source on GitHub ↗
(GlobalContext globalContext)

Source from the content-addressed store, hash-verified

20public class DynArray extends DynObject {
21
22 public DynArray(GlobalContext globalContext) {
23 super(globalContext);
24 setClassName("Array");
25 super.defineOwnProperty(null, "length",
26 PropertyDescriptor.newDataPropertyDescriptor(0L, true, true, true), false);
27 setPrototype(globalContext.getPrototypeFor("Array"));
28 }
29
30 @Override
31 public boolean defineOwnProperty(ExecutionContext context, String name, PropertyDescriptor desc, boolean shouldThrow) {

Callers

nothing calls this directly

Calls 5

setClassNameMethod · 0.65
defineOwnPropertyMethod · 0.65
setPrototypeMethod · 0.65
getPrototypeForMethod · 0.45

Tested by

no test coverage detected