Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evaljs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evaljs - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

3

index.js

@@ -5,5 +5,6 @@ "use strict";

//- LabeledStatement -> including use in break/continue
//- ForInStatement -> there is a start, finish it.
//- nicer error handling?
//-> TESTS
//-> BENCHMARKS
//-> nicer error handling?

@@ -10,0 +11,0 @@ var parse = require('acorn/acorn_csp').parse;

{
"name": "evaljs",
"version": "0.3.0",
"version": "0.3.1",
"description": "A JavaScript interpreter written in JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -60,5 +60,5 @@ eval.js

No labeled statements; no nice error handling; there are probably bugs.
That said, it can run itself so it's supported subset of JS is usable.
PRs welcome!
No labeled statements; no nice error handling; no for-in loops. There
are probably bugs. That said, it can run itself so its supported subset
of JS is usable. PRs containing improvements welcome!

@@ -65,0 +65,0 @@ How slow is it?

@@ -9,3 +9,2 @@ // not strict, 'cause we need to parse the with statement

/*
var op = {

@@ -110,3 +109,3 @@ '+': function (a, b) {return a + b; }

}());
*/
var x = 2;

@@ -113,0 +112,0 @@ switch (x) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc