MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / isRegExp

Function isRegExp

src/internalBinding/utils.cc:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static bool isRegExp(JSContext *cx, unsigned argc, JS::Value *vp) {
54 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
55 JS::HandleValue objVal = args.get(0);
56
57 bool objIsRegExp;
58 JS::ObjectIsRegExp(cx, JS::RootedObject(cx, JS::ToObject(cx, objVal)), &objIsRegExp);
59
60 args.rval().setBoolean(objIsRegExp);
61 return true;
62}
63
64static bool isTypedArray(JSContext *cx, unsigned argc, JS::Value *vp) {
65 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);

Callers 1

formatValueFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected