pragma Strict import QtQml import QtQuick Rectangle { Component.onCompleted: { // This returns 40 but should return NaN instead console.log(Math.max(undefined, 40)) } }