MCPcopy Create free account
hub / github.com/mozilla/rhino / get

Method get

rhino/src/main/java/org/mozilla/javascript/TopLevel.java:359–366  ·  view source on GitHub ↗
(String name, VarScope start)

Source from the content-addressed store, hash-verified

357 }
358
359 @Override
360 public Object get(String name, VarScope start) {
361 var res = super.get(name, start);
362 if (res != NOT_FOUND) {
363 return res;
364 }
365 return ScriptableObject.getProperty(globalThis, name);
366 }
367
368 @Override
369 public void put(String name, VarScope start, Object value) {

Calls 2

getPropertyMethod · 0.95
getMethod · 0.65