Last active
May 5, 2020 09:18
-
-
Save jakzale/1c24dd011a7b53fec3ca to your computer and use it in GitHub Desktop.
Patching node to enable harmony features by default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN original/src/node.cc new/src/node.cc | |
--- original/src/node.cc 2014-10-23 18:45:12.000000000 +0100 | |
+++ new/src/node.cc 2014-10-28 17:14:46.000000000 +0000 | |
@@ -2939,6 +2939,10 @@ char** Init(int argc, char *argv[]) { | |
constraints.set_stack_limit(stack_limit); | |
SetResourceConstraints(&constraints); // Must be done before V8::Initialize | |
} | |
+ | |
+ // Turning Harmony Features always on by default | |
+ V8::SetFlagsFromString("--harmony", sizeof("--harmony") - 1); | |
+ | |
V8::SetFlagsFromCommandLine(&v8argc, v8argv, false); | |
#ifdef __POSIX__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment