From 940fe4853b4406b2bb16670a32530243803cf79f Mon Sep 17 00:00:00 2001
From: Gregg Tavares <github@greggman.com>
Date: Mon, 6 Feb 2023 09:55:24 -0800
Subject: [PATCH] bump to v1.0.11

---
 dist/1.x/ByteBeat.js        | 4 ++--
 dist/1.x/ByteBeat.module.js | 4 ++--
 package-lock.json           | 4 ++--
 package.json                | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dist/1.x/ByteBeat.js b/dist/1.x/ByteBeat.js
index 89ec225..f21eae8 100644
--- a/dist/1.x/ByteBeat.js
+++ b/dist/1.x/ByteBeat.js
@@ -1,4 +1,4 @@
-/* ByteBeat@1.0.10, license MIT */
+/* ByteBeat@1.0.11, license MIT */
 (function (global, factory) {
   typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
   typeof define === 'function' && define.amd ? define(factory) :
@@ -312,7 +312,7 @@
       delete keys['Math'];
       delete keys['window'];
       return `
-        (0['constructor']['constructor'] = '');
+        {try { (0['constructor']['constructor'].prototype.constructor = '') } catch (e) {}};
         var ${Object.keys(keys).sort().join(',\n')};
         ${ByteBeatCompiler.addGlobals(Math, 'Math')}
     `;
diff --git a/dist/1.x/ByteBeat.module.js b/dist/1.x/ByteBeat.module.js
index e0b856c..6127aaa 100644
--- a/dist/1.x/ByteBeat.module.js
+++ b/dist/1.x/ByteBeat.module.js
@@ -1,4 +1,4 @@
-/* ByteBeat@1.0.10, license MIT */
+/* ByteBeat@1.0.11, license MIT */
 class WrappingStack {
   constructor(stackSize = 256) {
     let sp = 0;
@@ -306,7 +306,7 @@ class ByteBeatCompiler {
     delete keys['Math'];
     delete keys['window'];
     return `
-        (0['constructor']['constructor'] = '');
+        {try { (0['constructor']['constructor'].prototype.constructor = '') } catch (e) {}};
         var ${Object.keys(keys).sort().join(',\n')};
         ${ByteBeatCompiler.addGlobals(Math, 'Math')}
     `;
diff --git a/package-lock.json b/package-lock.json
index 66ce593..265ddb3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "bytebeat.js",
-  "version": "1.0.10",
+  "version": "1.0.11",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "bytebeat.js",
-      "version": "1.0.10",
+      "version": "1.0.11",
       "license": "MIT",
       "devDependencies": {
         "eslint": "^8.23.1",
diff --git a/package.json b/package.json
index e42b9af..e1db663 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "bytebeat.js",
-  "version": "1.0.10",
+  "version": "1.0.11",
   "description": "a bytebeat library",
   "module": "src/ByteBeatNode.js",
   "scripts": {