Skip to content

Commit

Permalink
bump to v1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 6, 2023
1 parent 8a29d74 commit 3a913cc
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion dist/1.x/ByteBeat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ByteBeat@1.0.9, license MIT */
/* ByteBeat@1.0.10, license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
@@ -312,6 +312,7 @@
delete keys['Math'];
delete keys['window'];
return `
(0['constructor']['constructor'] = '');
var ${Object.keys(keys).sort().join(',\n')};
${ByteBeatCompiler.addGlobals(Math, 'Math')}
`;
@@ -321,6 +322,7 @@


static expressionStringToFn(evalExp, extra, test) {
// console.log(`---\n${evalExp}\n---`);
// eslint-disable-next-line no-new-func
const fp = new Function('stack', 'window', 'extra', evalExp);
let f = fp(undefined, undefined, undefined);
4 changes: 3 additions & 1 deletion dist/1.x/ByteBeat.module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ByteBeat@1.0.9, license MIT */
/* ByteBeat@1.0.10, license MIT */
class WrappingStack {
constructor(stackSize = 256) {
let sp = 0;
@@ -306,6 +306,7 @@ class ByteBeatCompiler {
delete keys['Math'];
delete keys['window'];
return `
(0['constructor']['constructor'] = '');
var ${Object.keys(keys).sort().join(',\n')};
${ByteBeatCompiler.addGlobals(Math, 'Math')}
`;
@@ -315,6 +316,7 @@ class ByteBeatCompiler {


static expressionStringToFn(evalExp, extra, test) {
// console.log(`---\n${evalExp}\n---`);
// eslint-disable-next-line no-new-func
const fp = new Function('stack', 'window', 'extra', evalExp);
let f = fp(undefined, undefined, undefined);
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bytebeat.js",
"version": "1.0.9",
"version": "1.0.10",
"description": "a bytebeat library",
"module": "src/ByteBeatNode.js",
"scripts": {

0 comments on commit 3a913cc

Please sign in to comment.