/* * Copyright (c) 2020, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace JS { Symbol::Symbol(Optional description, bool is_global) : m_description(move(description)) , m_is_global(is_global) { } Symbol::~Symbol() { } Symbol* js_symbol(Heap& heap, Optional description, bool is_global) { return heap.allocate_without_global_object(move(description), is_global); } Symbol* js_symbol(VM& vm, Optional description, bool is_global) { return js_symbol(vm.heap(), move(description), is_global); } }