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

Method typeof

src/main/java/org/dynjs/runtime/Types.java:476–488  ·  view source on GitHub ↗
(ExecutionContext context, Object o)

Source from the content-addressed store, hash-verified

474 }
475
476 public static String typeof(ExecutionContext context, Object o) {
477 // 11.4.3
478 Object val = o;
479 if (o instanceof Reference) {
480 Reference r = (Reference) o;
481 if (r.isUnresolvableReference()) {
482 return "undefined";
483 }
484 val = getValue(context, o);
485 }
486
487 return type(val);
488 }
489
490 public static Object compareRelational(ExecutionContext context, Object x,
491 Object y, boolean leftFirst) {

Callers 2

interpretMethod · 0.95
visitMethod · 0.95

Calls 3

getValueMethod · 0.95
typeMethod · 0.95

Tested by

no test coverage detected