1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

fix: patch borc to avoid v8 bailing out of caching bytecode for the entire bundle chunk (#15385)

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
This commit is contained in:
Zbyszek Tenerowicz 2022-07-29 23:24:12 +02:00 committed by GitHub
parent 31fa55123a
commit acb46c2cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
patches/borc+2.1.2.patch Normal file
View File

@ -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