Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kernel): make type serialization explicit and recursive #401

Merged
merged 3 commits into from
Mar 28, 2019

Commits on Mar 26, 2019

  1. fix(kernel): make type serialization explicit and recursive

    Serialize and deserialize types according to their declared static type,
    and add validation on the runtime types matching the declared types.
    
    This is in contrast to previously, when we mostly only used the runtime
    types to determine what to do, and harly any validation was done. The
    runtime types used to be able to freely disagree with the declared
    types, and we put a lot of burden on the JSII runtimes at the other
    end of the wire.
    
    Fix tests that used to exercise the API with invalid arguments.
    
    Remove Proxy objects since they only existed to prevent accidentally
    overwriting certain keys via the jsii interface, and Symbols serve
    the same purpose (but simpler).
    
    Fixes aws/aws-cdk#1981.
    Rico Huijbers committed Mar 26, 2019
    Configuration menu
    Copy the full SHA
    4c0695c View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2019

  1. REmove debug print

    Rico Huijbers committed Mar 28, 2019
    Configuration menu
    Copy the full SHA
    bf30904 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/master' into huijbers/strict-ker…

    …nel-types
    Rico Huijbers committed Mar 28, 2019
    Configuration menu
    Copy the full SHA
    0af874e View commit details
    Browse the repository at this point in the history