Commit f35d6c04 authored by Simon Esposito's avatar Simon Esposito
Browse files

remove duplicated js match loop check

parent eb5270fd
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -415,10 +415,6 @@ func (rm *RuntimeJavaScriptMatchCore) MatchLoop(tick int64, state interface{}, i
		return nil, nil
	}

	if goja.IsNull(retVal) || goja.IsUndefined(retVal) {
		return nil, nil
	}

	retMap, ok := retVal.Export().(map[string]interface{})
	if !ok {
		return nil, errors.New("matchLoop is expected to return an object with 'state' property")