hclang 0.24.2 → 0.24.3

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.
@@ -218,7 +218,7 @@ export class FrameList extends Frame {
218
218
  */
219
219
  holdsAsProperty(term) {
220
220
  const binding = echoedBinding(this.answeredValue(term));
221
- return binding !== undefined && binding.target.deref() === this;
221
+ return binding !== undefined && binding.target === this;
222
222
  }
223
223
  size() {
224
224
  return this.data.length;
@@ -50,7 +50,7 @@ export class FrameLiteral extends FrameAtom {
50
50
  return this;
51
51
  return new FrameLiteral(this.data, {
52
52
  ...this.binding,
53
- target: new WeakRef(owner),
53
+ target: owner,
54
54
  });
55
55
  }
56
56
  }
@@ -233,7 +233,7 @@ export class FrameSymbol extends FrameAtom {
233
233
  out.set(assignmentKey, argument);
234
234
  return previous.is.missing
235
235
  ? new FrameLiteral(`.${this.data} ${argument.toString()}`, {
236
- target: new WeakRef(out),
236
+ target: out,
237
237
  key: assignmentKey,
238
238
  value: argument,
239
239
  })
@@ -264,7 +264,7 @@ export class FrameSymbol extends FrameAtom {
264
264
  out.set(assignmentKey, schema);
265
265
  out.set(`${assignmentKey}.<>`, schema);
266
266
  return new FrameLiteral(`.${this.data} ${schema.toString()}`, {
267
- target: new WeakRef(out),
267
+ target: out,
268
268
  key: assignmentKey,
269
269
  value: schema,
270
270
  });
@@ -18,11 +18,8 @@ export const HasType = (source, type) => {
18
18
  export const BindType = (source, body) => {
19
19
  if (source instanceof FrameLiteral && source.binding &&
20
20
  body instanceof FrameLazy) {
21
- const target = source.binding.target.deref();
22
- if (!target)
23
- return source;
24
21
  body.bindSignature(source.binding.value);
25
- target.set(source.binding.key, body);
22
+ source.binding.target.set(source.binding.key, body);
26
23
  }
27
24
  return source;
28
25
  };
@@ -1 +1 @@
1
- export const VERSION = "0.24.2";
1
+ export const VERSION = "0.24.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hclang",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "description": "Homoiconic C command-line interpreter and REPL",
5
5
  "keywords": [
6
6
  "language",