zzz_Numscrypt icon indicating copy to clipboard operation
zzz_Numscrypt copied to clipboard

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

Open TormodLandet opened this issue 7 years ago • 1 comments

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>

TormodLandet avatar May 10 '18 16:05 TormodLandet

Running transcrypt without -nominworks, even the non-minified version runs properly. I will do this for my further testing, but I was using -nomin to speed up the development so I will leave this as an open issue

TormodLandet avatar May 11 '18 14:05 TormodLandet