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

Method realThis

rhino/src/main/java/org/mozilla/javascript/NativeMap.java:269–276  ·  view source on GitHub ↗
(Object thisObj, String name)

Source from the content-addressed store, hash-verified

267 }
268
269 private static NativeMap realThis(Object thisObj, String name) {
270 NativeMap nm = LambdaConstructor.convertThisObject(thisObj, NativeMap.class);
271 if (!nm.instanceOfMap) {
272 // Check for "Map internal data tag"
273 throw ScriptRuntime.typeErrorById("msg.incompat.call", name);
274 }
275 return nm;
276 }
277
278 /**
279 * Extracts the key from the first args entry if any and takes care of the Delegator. This is

Callers 10

NativeMapClass · 0.95
js_setMethod · 0.95
js_deleteMethod · 0.95
js_getMethod · 0.95
js_hasMethod · 0.95
js_keysMethod · 0.95
js_valuesMethod · 0.95
js_entriesMethod · 0.95
js_clearMethod · 0.95
js_forEachMethod · 0.95

Calls 2

convertThisObjectMethod · 0.95
typeErrorByIdMethod · 0.95

Tested by

no test coverage detected