• Jakob Kummerow's avatar
    [bigint] Require --harmony-bigint for deserialization · a16ecd9e
    Jakob Kummerow authored
    While deserializing a BigInt with the --harmony-bigint flag off is
    harmless in itself, trying to wrap one as an Object (either during
    deserialization of a JSValue or later from user code) requires the
    BigInt constructor to be available. Since there's no strong reason
    to support deserialization of BigInts without the flag, this patch
    simply disallows it, which fixes the problem.
    
    Bug: chromium:820819
    Change-Id: I024a4f13715bbe95ee8eb6e1710e8f47ca227644
    Reviewed-on: https://chromium-review.googlesource.com/959802Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
    Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51911}
    a16ecd9e
value-serializer.cc 76 KB