Comments (5)
the bug in SpiderMonkey side: https://bugzilla.mozilla.org/show_bug.cgi?id=1475458
from proposal-binary-ast.
@syg can I have your opinion, about this issue and https://github.com/binast/ecmascript-binary-ast/issues/51 and https://bugzilla.mozilla.org/show_bug.cgi?id=1475458 ?
from proposal-binary-ast.
@arai-a Sorry for missing this.
Yeah, the current parameter scope is definitely deficient for capturing positional parameters. I had hoped that isSimpleParameterList
alone was sufficient -- but as your example points out, having some destructuring without parameter expressions means some arguments need to be accessed by position and some not.
The additional interface for assigning positions to asserted parameter names looks good to me.
from proposal-binary-ast.
here's WIP patch that adds above interfaces.
https://github.com/arai-a/ecmascript-binary-ast/tree/spec-draft-positional-formal
I'll open PR once rest parameter issue turns out to be solvable on SpiderMonkey side
from proposal-binary-ast.
I think we can workaround the rest parameter issue for now by a cheat (https://bugzilla.mozilla.org/show_bug.cgi?id=1475458#c9) as long as we know which is simple rest parameter.
the change in https://github.com/binast/ecmascript-binary-ast/pull/52 should help anyway.
from proposal-binary-ast.
Related Issues (20)
- Subresource Integrity integration HOT 16
- .length property should be available for lazy function HOT 3
- Can we put more information into AssertedParameterScope ? HOT 2
- Why do some interfaces not inherit from Node? HOT 8
- (Optional) type information HOT 2
- Add comments to length field of functions. HOT 1
- Transfer repo to TC39 org HOT 5
- Add verification of property names vs identifiers
- What should be put into AssertedParameterScope for duplicate parameters? HOT 6
- Consider merging LiteralInfinityExpression into LiteralNumericExpression HOT 3
- Could the binary AST be...a bit more binary? HOT 1
- Consider splitting `LiteralNumericExpression` to `LiteralInt32Expression` + `LiteralFloatExpression`
- Could the AST be based on a reduced subset of productions? HOT 1
- Consider a compressed file format with pre-shared dictionary.
- Function.prototype.toString() HOT 12
- Modify IDL order if all JS engines benefit
- [question] I have a question that Binary AST file can be translated directly to bytecode or it should be translated to standard AST and then translated to bytecode in browser? HOT 2
- What is the current status of this proposal? HOT 12
- Solved by W3C EXI? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proposal-binary-ast.