• bmeurer's avatar
    [runtime] Simplify CHECK_OBJECT_COERCIBLE. · a7d22de4
    bmeurer authored
    Don't use IS_NULL_OR_UNDEFINED() for CHECK_OBJECT_COERCIBLE() because it
    will also return true for undetectable objects, but use IS_NULL() and
    IS_UNDEFINED() directly, which will only return true for null or
    undefined (which matches the semantics of the abstract operation
    CheckObjectCoercible).
    
    R=yangguo@chromium.org
    
    Review URL: https://codereview.chromium.org/1287033002
    
    Cr-Commit-Position: refs/heads/master@{#30129}
    a7d22de4
macros.py 14.3 KB