String flags = ((RegExpLiteralNode) iNode).getFlagString();
// If flags are defined, additional pushstring instruction is needed
InstructionList result = createInstructionList(iNode, (flags.isEmpty()) ? 4 : 5);
result.addAll(currentScope.getPropertyValue(regexType, currentScope.getProject().getBuiltinType(BuiltinType.REGEXP)));
result.addInstruction(OP_pushstring, getStringLiteralContent(iNode));
if (!flags.isEmpty())
{
result.addInstruction(OP_pushstring, flags);