1.3.0 • Published 6 years ago

fragile v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Fragile

This is a fragile weak implementation which can be used in node.js and v8 based browsers.

In able to run this code you should use the v8 expose-gc and allow-natives-syntax flags.

Chrom(e|ium):

chromium-browser --js-flags="--expose-gc --allow-natives-syntax"

Node.js:

node --expose_gc --allow_natives_syntax

Usage:

Referenced:

const fragile = require('fragile')

let myObject = {be: 'test'};

const myObjectIsLeaking = fragile(myObject)

myObjectIsLeaking() // true

Dereferenced:

const fragile = require('fragile')

let myObject = {be: 'test'};

const myObjectIsLeaking = fragile(myObject)

myObject = null

myObjectIsLeaking() // false
1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

10 years ago