summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 22:10:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-23 13:50:42 +0900
commit8a1e12499b83870f9f102f0f0ea512f0355aac67 (patch)
tree10b6fa2952890a6884bf8812b78ba99474c809b0 /parse.y
parentc0a2d95cf318cf9b9ffe23f0a4b8720f69775448 (diff)
Ensure non-literal expressions shareable if `leteral`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3950
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 1637921a2bd..c65a469a316 100644
--- a/parse.y
+++ b/parse.y
@@ -11085,7 +11085,7 @@ shareable_literal_value(NODE *node)
}
#ifndef SHAREABLE_BARE_EXPRESSION
-#define SHAREABLE_BARE_EXPRESSION 0
+#define SHAREABLE_BARE_EXPRESSION 1
#endif
VALUE rb_ractor_make_shareable(VALUE obj);