@geastack/compiler 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -861,6 +861,9 @@ staticCommonJsRequireOutcomeOf = () => null, trustSeed = initialCensusSeed) => {
|
|
|
861
861
|
* intrinsic prototype the component had been merged with, `Map.prototype`
|
|
862
862
|
* among them, for every `x` and `width` handed to a `readPixels`-style
|
|
863
863
|
* native, and refused obligations no native could touch.
|
|
864
|
+
*
|
|
865
|
+
* An argument whose own type is primitive as well reaches nothing at all
|
|
866
|
+
* (`primitiveArgumentReachesNothing` below).
|
|
864
867
|
*/
|
|
865
868
|
const NO_SCALAR_POSITIONS = new Map();
|
|
866
869
|
const hostNativeScalarParametersOf = (call) => {
|
|
@@ -6926,8 +6929,26 @@ staticCommonJsRequireOutcomeOf = () => null, trustSeed = initialCensusSeed) => {
|
|
|
6926
6929
|
const component = target ? factsByComponent.get(target) : undefined;
|
|
6927
6930
|
// A scalar host parameter reaches what its primitive reaches, and
|
|
6928
6931
|
// nothing else of the cell's component (`hostNativeScalarParametersOf`).
|
|
6932
|
+
//
|
|
6933
|
+
// A primitive argument reaches nothing at all. The wrapper chain is
|
|
6934
|
+
// `Object.prototype` and the `Object` constructor, stamped `every`
|
|
6935
|
+
// for each uncontracted native taking a `number`, which revoked
|
|
6936
|
+
// `Object.assign` and every absent-key read in the program over one
|
|
6937
|
+
// `bindBufferBase( target, index, buffer )`. A native that could
|
|
6938
|
+
// reach those realm intrinsics through a `double` could reach them
|
|
6939
|
+
// with no argument at all, and this stamp has never charged a
|
|
6940
|
+
// zero-argument native with anything: what a native does to the
|
|
6941
|
+
// realm on its own is its contract's business (`host-effect-contracts.ts`).
|
|
6942
|
+
// Only the argument's OWN type answers that: `define as unknown as
|
|
6943
|
+
// number` or an `any` cell may still hold an object, and keeps the
|
|
6944
|
+
// wrapper chain.
|
|
6929
6945
|
const scalar = scalarParameters.get(position);
|
|
6930
|
-
const
|
|
6946
|
+
const primitiveArgumentReachesNothing = scalar !== undefined && primitiveResult(checker.getTypeAtLocation(current));
|
|
6947
|
+
const reach = scalar === undefined
|
|
6948
|
+
? null
|
|
6949
|
+
: primitiveArgumentReachesNothing
|
|
6950
|
+
? new Set()
|
|
6951
|
+
: primitivePrototypeReachOf(scalar, current);
|
|
6931
6952
|
const facts = component === undefined || reach === null
|
|
6932
6953
|
? component
|
|
6933
6954
|
: { ...component, prototypes: new Set([...component.prototypes].filter((declaration) => reach.has(declaration))) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "The geastack TypeScript-to-C++ compiler: one semantic spine, no source-shaped authority, no boxing of statically typed values.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|