String builtins merge, passing builtinSetNames and stringConstant#115
String builtins merge, passing builtinSetNames and stringConstant#115guybedford merged 2 commits intomainfrom
Conversation
9ccf7db to
0709449
Compare
|
@guybedford Overall LGTM. I'm uncertain about the string constants import though. I think we'd be unhappy if we were always stuck with My understanding is that not picking a name for string constants now doesn't preclude us from picking one later? So could we continue to defer the question? I know I've not made any progress on compact-imports recently, but I do hope to pick it up soon. I think if that moves to phase 2 we'll have more clarity here. |
|
@eqrion thanks for taking a look here. I wonder if compact imports could be framed as an optimization that would result in a single instance import like That is, can we make this decision in anticipation of compact imports that Would be good to discuss this further. Yes we can wait on this decision here, and still be able to decide later. But string constants are also an important piece of the string builtins story that we shouldn't delay on unnecessarily either. |
|
Just my 2c on |
|
Will aim to land this next week now that compact imports progress is clear, any further thoughts or comments welcome. |
With the spec now merged to the latest, we can explicitly integrate with the JS String Builtins proposal, passing the
builtinSetNamesandstringConstantparameters to module construction.This explicitly now passes
« "js-string" »for the builtinset.For the string constant, we had a bikeshed discussion in #118, which led to the conclusion of
wasm:js/string-constants, which is specified here as well.// cc @eqrion