Skip to content

Commit 131f2ae

Browse files
committed
Rename function
1 parent 5e68a7b commit 131f2ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/virtual-machines/source-2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ function show_heap_value(address) {
14471447
}
14481448
}
14491449

1450-
function is_denotable_value(addr) {
1450+
function is_primitive_value(addr) {
14511451
return node_kind(HEAP[addr]) === "number"
14521452
|| node_kind(HEAP[addr]) === "string"
14531453
|| node_kind(HEAP[addr]) === "bool";
@@ -1462,7 +1462,7 @@ function show_pair_value(address) {
14621462
let display_text = "[";
14631463
const h_addr = HEAP[address + HEAD_VALUE_SLOT];
14641464
const t_addr = HEAP[address + TAIL_VALUE_SLOT];
1465-
if (is_denotable_value(h_addr)) {
1465+
if (is_primitive_value(h_addr)) {
14661466
display_text = display_text + stringify(HEAP[h_addr + NUMBER_VALUE_SLOT]);
14671467
} else if (is_null_value(h_addr)) {
14681468
display_text = display_text + "null";
@@ -1472,7 +1472,7 @@ function show_pair_value(address) {
14721472
display_text = display_text + "undefined_value";
14731473
}
14741474
display_text = display_text + ",";
1475-
if (is_denotable_value(t_addr)) {
1475+
if (is_primitive_value(t_addr)) {
14761476
display_text = display_text + stringify(HEAP[t_addr + NUMBER_VALUE_SLOT]);
14771477
} else if (is_null_value(t_addr)) {
14781478
display_text = display_text + "null";

0 commit comments

Comments
 (0)