Skip to content

Commit 3a913cc

Browse files
committed
bump to v1.0.10
1 parent 8a29d74 commit 3a913cc

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

dist/1.x/ByteBeat.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ByteBeat@1.0.9, license MIT */
1+
/* ByteBeat@1.0.10, license MIT */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -312,6 +312,7 @@
312312
delete keys['Math'];
313313
delete keys['window'];
314314
return `
315+
(0['constructor']['constructor'] = '');
315316
var ${Object.keys(keys).sort().join(',\n')};
316317
${ByteBeatCompiler.addGlobals(Math, 'Math')}
317318
`;
@@ -321,6 +322,7 @@
321322

322323

323324
static expressionStringToFn(evalExp, extra, test) {
325+
// console.log(`---\n${evalExp}\n---`);
324326
// eslint-disable-next-line no-new-func
325327
const fp = new Function('stack', 'window', 'extra', evalExp);
326328
let f = fp(undefined, undefined, undefined);

dist/1.x/ByteBeat.module.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* ByteBeat@1.0.9, license MIT */
1+
/* ByteBeat@1.0.10, license MIT */
22
class WrappingStack {
33
constructor(stackSize = 256) {
44
let sp = 0;
@@ -306,6 +306,7 @@ class ByteBeatCompiler {
306306
delete keys['Math'];
307307
delete keys['window'];
308308
return `
309+
(0['constructor']['constructor'] = '');
309310
var ${Object.keys(keys).sort().join(',\n')};
310311
${ByteBeatCompiler.addGlobals(Math, 'Math')}
311312
`;
@@ -315,6 +316,7 @@ class ByteBeatCompiler {
315316

316317

317318
static expressionStringToFn(evalExp, extra, test) {
319+
// console.log(`---\n${evalExp}\n---`);
318320
// eslint-disable-next-line no-new-func
319321
const fp = new Function('stack', 'window', 'extra', evalExp);
320322
let f = fp(undefined, undefined, undefined);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bytebeat.js",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "a bytebeat library",
55
"module": "src/ByteBeatNode.js",
66
"scripts": {

0 commit comments

Comments
 (0)