Ben Brook

Results 26 comments of Ben Brook

@szmarczak I'm using that snippet but getting "Cannot add property stack, object is not extensible" when setting `stack` on `options.context` via `Error.captureStackTrace(options.context);`. Does this have an `Object.freeze` / `.preventExtensions` /...

I can't send a full repro at the moment, but I think it's likely you're [not in strict mode (`'use strict';`) if you're not getting the TypeError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze#description) FWIW, I worked...

Also in case it's helpful to any future readers using TypeScript, here's my working TypeScript version ```ts import got, { BeforeErrorHook, HandlerFunction, RequestError } from 'got'; const stackTraceHandler: HandlerFunction =...

@bnb sharing our temporary work around below: https://github.com/transcend-io/penumbra/blob/046e073b5ed6191cfc522b2b8a2d550a65c6c4bf/package.json#L31

Was this PR abandoned? Would love to see updated syntax.

@eligrey here it is https://vercel.com/transcend-io/penumbra-example/settings/general

@eligrey updated that vercel build script to `yarn build:dist && cp -a dist/ example/dist/`

This might be useful when we do https://github.com/mozilla/send/blob/master/app/fileReceiver.js#L115 https://github.com/mozilla/send/blob/master/app/serviceWorker.js#L117 GitHubmozilla/sendSimple, private file sharing from the makers of Firefox - mozilla/send

I imagine there’s a ton of unused code in this dependency. We should first try tree shaking. It’s definitely not on since webpack is in development mode https://webpack.js.org/guides/tree-shaking/

https://github.com/w3c/webcrypto/issues/73