Browse Source

Make well_known_symbols functions pub (#3465)

pull/3466/head
tj825 1 year ago committed by GitHub
parent
commit
bbde84a776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      boa_engine/src/symbol.rs

2
boa_engine/src/symbol.rs

@ -151,7 +151,7 @@ unsafe impl Trace for JsSymbol {
macro_rules! well_known_symbols { macro_rules! well_known_symbols {
( $( $(#[$attr:meta])* ($name:ident, $variant:path) ),+$(,)? ) => { ( $( $(#[$attr:meta])* ($name:ident, $variant:path) ),+$(,)? ) => {
$( $(
$(#[$attr])* pub(crate) const fn $name() -> JsSymbol { $(#[$attr])* pub const fn $name() -> JsSymbol {
JsSymbol { JsSymbol {
// the cast shouldn't matter since we only have 127 const symbols // the cast shouldn't matter since we only have 127 const symbols
repr: Tagged::from_tag($variant.hash() as usize), repr: Tagged::from_tag($variant.hash() as usize),

Loading…
Cancel
Save