Skip to content

TypeError: calling a builtin typed array constructor without new is forbidden #6

Description

@TormodLandet

I get TypeError: calling a builtin typed array constructor without new is forbidden in the developer console with the latest numscrypt/transcrypt from PyPi on Python 3.6.5. The code execution stops and basically nothing works.

Tested with Firefox 59.0.2 on Ubuntu 18.04. I am running the following command:

transcrypt -b -nomin bug.py

With the following "bug.py":

import numscrypt as num
print(num.zeros(4))

And a simple html page:

<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>Bug triage</title></head>
<body>
<script src="__javascript__/bug.js"></script>
</body>
</html>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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