lave icon indicating copy to clipboard operation
lave copied to clipboard

eval in reverse: stringifying all the stuff that JSON.stringify won't

Results 8 lave issues
Sort by recently updated
recently updated
newest added

Example: ```js const path = require("path"); const fs = require("fs"); const pdfjs = require("pdfjs-dist/legacy/build/pdf.js"); const lave = require("lave"); const { generate } = require("escodegen"); async function go() { const pdf...

``` var generate = require('escodegen').generate var lave = require('lave') var a = [function(){}, new Date, Math.abs, (function a() {console.log(this)}).bind(global)] console.log(lave(a,{generate, format: 'module'})) ``` > throw new Error('Native code cannot be...

The readme mention that the lib can be user with babel generate, but @babel/generator [generate](https://github.com/babel/babel/blob/master/packages/babel-generator/src/index.js#L109) method requires the source as a text as input as far as I see. Can...

Tried to serialized an async function, and get this error: ``` UnhandledPromiseRejectionWarning: TypeError: Function.prototype.toString requires that 'this' be a Function at AsyncFunction.toString () at String () at isNativeFunction (/Users/nbalazs/Work/projects/stylers/Meta/MetaBase.CLI/MigrateMetadata/node_modules/lave/index.js:386:16) at...

Serializing constructor like this: ``` var generate = require('escodegen').generate var lave = require('lave') var fs = require('fs') function Greeter(message) { this.greeting = message; } Greeter.prototype.greet = function () { return...

Math.E Math.LN10 Math.LN2 Math.LOG10E Math.LOG2E Math.PI Math.SQRT1_2 Math.SQRT2