puma
puma copied to clipboard
Meta-programming framework for JavaScript based on LayerD concepts
Generate a test suite for: ``` // Set data structure let s = new Set() s.add("hello").add("goodbye").add("hello") s.size === 2 s.has("hello") === true for (let key of s.values()) // insertion order...
The runtime need to has the visitor for the let and const statements. For this implementation please check this [link ](https://www.ecma-international.org/ecma-262/6.0/index.html#sec-let-and-const-declarations) related to current supported specification. ### Examples of errors...
The runtime need to has the visitor for the spread operator. ``` var str = "foo"; var chars = [ ...str ]; // [ "f", "o", "o" ] ```
The runtime need to has the visitor for template literals. ``` var customer = { name: "Foo" }; var card = { amount: 7, product: "Bar", unitprice: 42 }; var...
The runtime need to has the visitor for destructuring assignment. For this implementation please check this [link ](https://www.ecma-international.org/ecma-262/6.0/index.html#sec-destructuring-assignment)related to current supported specification.
The runtime need to has the visitor for the Map and Set objects. For this implementation please check [these](https://www.ecma-international.org/ecma-262/6.0/index.html#sec-map-objects) [links](https://www.ecma-international.org/ecma-262/6.0/index.html#sec-set-objects) related to current supported specification.
The runtime need to has the visitor for the continue statement. This and the #137 issue will cover all the jump statement needed. For this implementation please check this [link](https://www.ecma-international.org/ecma-262/5.1/#sec-12.7)...
The runtime need to has the visitor for the break statement. For this implementation please check this [link](https://www.ecma-international.org/ecma-262/5.1/#sec-12.8) related to current supported specification.
Several **result.success** checks are missing from _/tests/suites/Test-12-ECMA.js_ and possibly others. The `equal(result.success, true);` assertion should be added to the missing tests.
nodeType _**"SequenceExpression"**_ case has no visit method assigned at runtime.js. Example of associated test: ``` function myFunc() { var x = 0; return (x+=1, x*=2, x); } myFunc(); ```