dillon1000/react

Commit

[env] Type inference for global object

- Add `DEFAULT_SHAPES` ShapeRegistry, which holds builtins and all 
`ObjectShapes` used in `DEFAULT_GLOBALS`. 

- Add a few typed objects / functions into `DEFAULT_GLOBALS` (used for tests) 

- Add type inference and `infer-global-object` test
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/src/HIR/Environment.ts ModifiedM compiler/forget/src/HIR/Globals.ts ModifiedM compiler/forget/src/TypeInference/InferTypes.ts ModifiedA compiler/forget/src/__tests__/fixtures/compiler/infer-global-object.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/infer-global-object.js Added
Patch

Files changed

Rendering syntax-highlighted changes…