Socket
Socket
Sign inDemoInstall

to-fast-properties

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

17

index.js
'use strict';
module.exports = function toFastProperties(obj) {
function f() {}
f.prototype = obj;
new f();
return;
eval(obj);
};
module.exports = function toFastproperties(o) {
function Sub() {}
Sub.prototype = o;
var receiver = new Sub(); // create an instance
function ic() { return typeof receiver.foo; } // perform access
ic();
ic();
return o;
eval("o" + o); // ensure no dead code elimination
}
{
"name": "to-fast-properties",
"version": "1.0.2",
"version": "1.0.3",
"description": "Force V8 to use fast properties for an object",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc