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

Method js_clear

rhino/src/main/java/org/mozilla/javascript/NativeSet.java:148–152  ·  view source on GitHub ↗
(
            Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)

Source from the content-addressed store, hash-verified

146 }
147
148 private static Object js_clear(
149 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
150 NativeSet realThis = realThis(thisObj, "add");
151 return realThis.js_clear();
152 }
153
154 private Object js_clear() {
155 entries.clear();

Callers

nothing calls this directly

Calls 2

realThisMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected