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

Method get

src/main/java/org/dynjs/runtime/Arguments.java:23–35  ·  view source on GitHub ↗
(ExecutionContext context, String name)

Source from the content-addressed store, hash-verified

21 }
22
23 @Override
24 public Object get(ExecutionContext context, String name) {
25 // 10.6 [[Get]]
26 Object d = this.map.getOwnProperty(context, name);
27 if (d == Types.UNDEFINED) {
28 Object v = super.get(context, name);
29 if (name.equals("caller") && (v instanceof JSFunction) && ((JSFunction) v).isStrict()) {
30 throw new ThrowException(context, context.createTypeError("may not reference 'caller'"));
31 }
32 return v;
33 }
34 return this.map.get(context, name);
35 }
36
37 @Override
38 public Object getOwnProperty(ExecutionContext context, String name, boolean dupe) {

Callers 10

callMethod · 0.95
callMethod · 0.95
toStringMethod · 0.95
callMethod · 0.95
callMethod · 0.95
callMethod · 0.95
callMethod · 0.95
callMethod · 0.95
callMethod · 0.95
callMethod · 0.95

Calls 4

createTypeErrorMethod · 0.80
getOwnPropertyMethod · 0.65
getMethod · 0.65
isStrictMethod · 0.65

Tested by

no test coverage detected