gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.12k stars 655 forks source link

Safari : Invalid regular expression, because of uglify compressing utf-8 characters #743

Open jbghoul opened 2 years ago

jbghoul commented 2 years ago

Parkour

What is wrong?

On Safari, MacOS, loading gpu.js causes an error :

SyntaxError: Invalid regular expression: range out of order in character class

Explanation

Where does it happen?

It happen on Safari when loading gpu.js from https://cdn.jsdelivr.net/npm/gpu.js@2.15.0

How do we replicate the issue?

How important is this (1-5)?

2

Expected behavior (i.e. solution)

This can be fix by giving ascii_only output option to ugligy

Other Comments

Pull request in coming ...