From acb46c2cdb349aa39694f5b229c31c5f540ffab9 Mon Sep 17 00:00:00 2001 From: Zbyszek Tenerowicz Date: Fri, 29 Jul 2022 23:24:12 +0200 Subject: [PATCH] fix: patch borc to avoid v8 bailing out of caching bytecode for the entire bundle chunk (#15385) Co-authored-by: Brad Decker --- patches/borc+2.1.2.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/borc+2.1.2.patch diff --git a/patches/borc+2.1.2.patch b/patches/borc+2.1.2.patch new file mode 100644 index 000000000..91708745c --- /dev/null +++ b/patches/borc+2.1.2.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/borc/src/decoder.asm.js b/node_modules/borc/src/decoder.asm.js +index d77a3c2..dc70f6b 100644 +--- a/node_modules/borc/src/decoder.asm.js ++++ b/node_modules/borc/src/decoder.asm.js +@@ -1,7 +1,7 @@ + /* eslint-disable */ + + module.exports = function decodeAsm (stdlib, foreign, buffer) { +- 'use asm' ++ // 'use asm' //causes v8 to not cache bytecode + + // -- Imports +