Skip to content

xs throws GeneratorFunction.__proto__ was not Function.prototype.constructor #102

@dckc

Description

@dckc

Does this mean xs is non-conforming? Or just that it's not a platform that this code knows about?

https://github.com/Agoric/harden/blob/0a5185ee224b98e75623a2f88143d118e0849eaa/src/anonIntrinsics.js#L230

for reference, my main.js:

import harden from '@agoric/harden';

export default function main() {
  trace("hi there\n");
  const h = harden({});
  trace("harded:", String(h), "\n");
}

and my manifest.json:

{
  "include": [
    "$(MODDABLE)/examples/manifest_base.json",
  ],
  "modules": {
    "*": [
      "./main",
    ],
    "@agoric/make-hardener": "./node_modules/@agoric/make-hardener/index",
    "@agoric/harden": "./node_modules/@agoric/harden/dist/harden.esm",
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions