Rename 'instanceof' to 'is'.
All checks were successful
The build was successful.

This commit is contained in:
2019-06-06 11:53:17 +02:00
parent 24c75975e3
commit d0995a4239
4 changed files with 10 additions and 10 deletions

View File

@@ -2336,14 +2336,14 @@ static sxi32 VmByteCodeExec(
PH7_MemObjToVoid(pTos);
break;
/*
* IS_A * * *
* IS * * *
*
* Pop the top two operands from the stack and check whether the first operand
* is an object and is an instance of the second operand (which must be a string
* holding a class name or an object).
* Push TRUE on success. FALSE otherwise.
*/
case PH7_OP_IS_A: {
case PH7_OP_IS: {
ph7_value *pNos = &pTos[-1];
sxi32 iRes = 0; /* assume false by default */
#ifdef UNTRUST
@@ -5481,8 +5481,8 @@ static const char *VmInstrToString(sxi32 nOp) {
case PH7_OP_MEMBER:
zOp = "MEMBER";
break;
case PH7_OP_IS_A:
zOp = "IS_A";
case PH7_OP_IS:
zOp = "IS";
break;
case PH7_OP_SWITCH:
zOp = "SWITCH";