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

Method js_add

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

Source from the content-addressed store, hash-verified

103 }
104
105 private static Object js_add(
106 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
107 NativeSet realThis = realThis(thisObj, "add");
108 var k = NativeMap.key(args);
109 return realThis.js_add(k);
110 }
111
112 private Object js_add(Object k) {
113 // Special handling of "negative zero" from the spec.

Callers 4

js_unionMethod · 0.95
js_differenceSetLikeMethod · 0.45

Calls 4

realThisMethod · 0.95
keyMethod · 0.95
putMethod · 0.65
doubleValueMethod · 0.45

Tested by

no test coverage detected